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
>
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
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
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
>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
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
While I'm at it...what's the Apache2:: equivilent of SCRIPT_NAME?
-=Chris
smime.p7s
Description: S/MIME Cryptographic Signature
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
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:
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
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
11 matches
Mail list logo