RE: Apache virtulahosts sharing modules

2004-07-22 Thread Gerald Richter
> > The include file has no package name. But I left out one crucial part > of my example that makes all the difference. :-) Once I require the > unique (per virtualhost) include file I then stuff the variables into > the $req object. So if I have 5 virtualhosts then mod_perl will cache > the

Re: Apache virtulahosts sharing modules

2004-07-21 Thread Luiz Fernando B. Ribeiro
Steve Wilder wrote: Hello, all. I'm using Apache 1.3.29 and Embperl 1.3.6 I've got two Apache Virtualhosts: www.benwilder, and rhyme.benwilder.com Both sites have a "test1.phtml" which looks like this: [! use test1; !] [+ test1::whereami() +]

Re: Apache virtulahosts sharing modules

2004-07-20 Thread John P. Gibbons
On Jul 20, 2004, at 9:44 PM, Gerald Richter wrote: If the files have different path _and_ different package names it will work. If the files have no package name, it will compiled into the first package where it is loaded and only accessable from this package/file. Hi Gerald, The include file h

Re: Apache virtulahosts sharing modules

2004-07-20 Thread Gerald Richter
> > Will it work if you have your perl module require a file filled with > constants for each site? What I've been doing is my module determines > the current site via $ENV{DOCUMENT_ROOT} and I then construct the > correct path to the unique config file for each site. I then "require" > that file

RE: Apache virtulahosts sharing modules

2004-07-20 Thread Andrew O'Brien
> From: John P. Gibbons [mailto:[EMAIL PROTECTED] > Subject: Re: Apache virtulahosts sharing modules > > Andrew O'Brien wrote: > > >Your best bet is to have site-specific information set up at > the embperl > >request level. Ie have constants/whatever initi

Re: Apache virtulahosts sharing modules

2004-07-20 Thread John P. Gibbons
Andrew O'Brien wrote: Your best bet is to have site-specific information set up at the embperl request level. Ie have constants/whatever initialised in base files rather than having that kind of logic in the modules. Andrew, Will it work if you have your perl module require a file filled with

RE: Apache virtulahosts sharing modules

2004-07-20 Thread Andrew O'Brien
> From: Steve Wilder [mailto:[EMAIL PROTECTED] > Subject: Apache virtulahosts sharing modules > > > Hello, all. > > I'm using Apache 1.3.29 and Embperl 1.3.6 > > I've got two Apache Virtualhosts: www.benwilder, and > rhyme.benwilder.com > &g

Re: Apache virtulahosts sharing modules

2004-07-20 Thread Gerald Richter
Hi, you have only _one_ Perl interpreter under mod_perl, so it is the same for both virtual host, so you cannot load two different modules, with the same package name. See perl.apache.org in the mod_perl guide for more informations about this topic. Gerald Steve Wilder wrote: > Hello, all. >

Apache virtulahosts sharing modules

2004-07-17 Thread Steve Wilder
Hello, all. I'm using Apache 1.3.29 and Embperl 1.3.6 I've got two Apache Virtualhosts: www.benwilder, and rhyme.benwilder.com Both sites have a "test1.phtml" which looks like this: [! use test1; !] [+ test1::whereami() +] Both sites have