perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject finding "context" in mod_perl handler
Date Tue, 21 Apr 2009 10:16:07 GMT

Supposing I have this kind of setup

<Location /xyz>
   PerlAuthenhandler My::AuthModule


<Directory /var/www/some/path>
   PerlAuthenhandler My::AuthModule

and a request is made for "/xyz", and as a result the module is called,

is there some way in My::AuthModule::handler(), by which I can find out 
that, in *this* instance, I am being called in the "context" of the 
<Location> directive above, as opposed to the <Directory> case ?

I mean, I could do something like respectively
   PerlSetVar context "location:/xyz"
   PerlSetVar context "dir:/some/path"

and then check the var in the handler, but there has to be a 
better/cleaner way, no ?


View raw message