perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Siracusa <>
Subject Any way for a PerlHandler to know what Location block it's in?
Date Wed, 08 Jun 2005 15:18:13 GMT
Confusing subject, simple question:

<Location /foo/bar>
  PerlSetVar  MyRoot "/foo/bar"
  SetHandler  perl-script
  PerlHandler MyModule

MyModule calls $r->dir_config('MyRoot') to get the "/foo/bar" path.

I want to ditch the  "PerlSetVar MyRoot" line because it will always have
the same value as the "Location" directiv above it.  Is there a way MyModule
can get "/foo/bar" using some other means?

(This is mod_perl 1, BTW)


View raw message