Re: finding "context" in mod_perl handler

2009-04-21 Thread David Ihnen
André Warnier wrote: Hi. Supposing I have this kind of setup and then check the var in the handler, but there has to be a better/cleaner way, no ? Thanks André http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_path_info_ Just get the info from the request object within the hand

Re: finding "context" in mod_perl handler

2009-04-21 Thread Perrin Harkins
On Tue, Apr 21, 2009 at 1:47 PM, Perrin Harkins wrote: > On Tue, Apr 21, 2009 at 6:16 AM, André Warnier wrote: >> I mean, I could do something like respectively >>  PerlSetVar context "location:/xyz" >> and >>  PerlSetVar context "dir:/some/path" >> >> and then check the var in the handler, but t

Re: finding "context" in mod_perl handler

2009-04-21 Thread Perrin Harkins
On Tue, Apr 21, 2009 at 6:16 AM, André Warnier wrote: > I mean, I could do something like respectively >  PerlSetVar context "location:/xyz" > and >  PerlSetVar context "dir:/some/path" > > and then check the var in the handler, but there has to be a better/cleaner > way, no ? That's what I would

Re: finding "context" in mod_perl handler

2009-04-21 Thread Adam Prime
André Warnier wrote: Hi. Supposing I have this kind of setup PerlAuthenhandler My::AuthModule ... ... 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

finding "context" in mod_perl handler

2009-04-21 Thread André Warnier
Hi. Supposing I have this kind of setup PerlAuthenhandler My::AuthModule ... ... 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* i