Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Philip M. Gollucci
Will Fould wrote: > Thank Philip -- That helps! But both virtual hosts run their own > installation of the same scripts (hence, same package names). The > installation loads it's configuration for those scripts located at > $myvar (a simple package with variables). Until recently, installations >

Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Malcolm J Harwood
On Saturday 23 September 2006 11:41, Will Fould wrote: > Thank Philip -- That helps! But both virtual hosts run their own > installation of the same scripts (hence, same package names). The > installation loads it's configuration for those scripts located at $myvar > (a simple package with variab

Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Michael Peters
Will Fould wrote: > I thought that packages loaded from different locations, (but with the > same name), would not conflict. Silly me. This is because even though you've told apache to map a certain URL to a certain script, there is only 1 running Perl interpreter. And since Perl only allows 1

Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Will Fould
Thank Philip -- That helps!  But both virtual hosts run their own installation of the same scripts (hence, same package names). The installation loads it's configuration for those scripts located at $myvar (a simple package with variables). Until recently, installations were always on separate serv

Re: dir_config -- sanity required. (Restated)

2006-09-23 Thread Philip M. Gollucci
>Will Fould wrote: > package mypackage; > my($myvar)=(); > my $r=Apache2::RequestUtil->request; > $myvar=$r->dir_config('BAR'); >From what I can see, you're only issue is that you've duplicated package mypackage; make that package X; # for vhost1 and script1 package Y; # for vh

dir_config -- sanity required. (Restated)

2006-09-23 Thread Will Fould
I had a typo on my previous post -- below has been corrected:--I have 2 virtuals configured for the same server:  FOO and BAR:One has directive:   PerlSetVar BAR  /www/bar/bar_file The other has:    PerlSetVar FOO /www/foo/foo_fileWhen I run (/www/bar/bar_scripts/test.cgi):

dir_config -- sanity required.

2006-09-23 Thread Will Fould
I have 2 virtuals configured for the same server:  FOO and BAR:One has directive:   PerlSetVar BAR  /www/bar/bar_fileThe other has:    PerlSetVar FOO /www/foo/foo_fileWhen I run (/www/bar/bar_scripts/test.cgi):     package mypackage;     my($myvar)=();     my $r=Apache2::RequestUtil->request;     $