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

Re: dir_config

2005-09-05 Thread Philippe M. Chiasson
Christopher H. Laco wrote: > While I'm at it...what's the Apache2:: equivilent of SCRIPT_NAME? $r->uri See: http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_uri_ In the future, try to post new questions as a separate email, not as a reply to an existing thread. Makes it harder to id

Re: dir_config

2005-09-03 Thread Christopher H. Laco
While I'm at it...what's the Apache2:: equivilent of SCRIPT_NAME? -=Chris smime.p7s Description: S/MIME Cryptographic Signature

Re: dir_config

2005-09-01 Thread Randy Kobes
On Fri, 2 Sep 2005, Christopher H. Laco wrote: Philip M. Gollucci wrote: Christopher H. Laco wrote: Can't locate object method "dir_config" via package "Apache2::RequestRec" Thats a good question. Your code looks fundamentally correct. Here's a live example maybe it will help. Here's wh

Re: dir_config

2005-09-01 Thread Philip M. Gollucci
Christopher H. Laco wrote: At this point, $r is a simple old RequestRec. IT appears I have to use other mofules to enhance what $r can do. My problem was that I wasn't including RequestIO for print or RequestUtil for dir_config. Me thinks you want to put stuff in your startup.pl file See:

Re: dir_config

2005-09-01 Thread Christopher H. Laco
Philip M. Gollucci wrote: Christopher H. Laco wrote: Can't locate object method "dir_config" via package "Apache2::RequestRec" Thats a good question. Your code looks fundamentally correct. Here's a live example maybe it will help. Here's what I've learned. handler { my $r = shift

Re: dir_config

2005-09-01 Thread Philip M. Gollucci
Christopher H. Laco wrote: Can't locate object method "dir_config" via package "Apache2::RequestRec" Thats a good question. Your code looks fundamentally correct. Here's a live example maybe it will help. http://p6m7g8.net/dir_config SetHandler modperl PerlResponseHandler TEST::DirC