setHandler question

2012-12-14 Thread André Warnier
Hi. Quite a while ago (2008), this discussion on the list : http://marc.info/?l=apache-modperl&m=122399752819709&w=2 was about how to, within a PerlAuthenHandler, override the ResponseHandler which would normally kick in later in the cycle, and force it to be mod_perl and a specific (other) P

Re: setHandler question

2012-12-14 Thread Ryan Gies
On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r->finfo(); # do something to $finfo to set the flag $r->finfo($finfo); $r->handler('modperl'); $r->set_handlers(PerlResponseHandler => \&_my_response_handler); but how do

Re: setHandler question

2012-12-14 Thread André Warnier
Ryan Gies wrote: On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r->finfo(); # do something to $finfo to set the flag $r->finfo($finfo); $r->handler('modperl'); $r->set_handlers(PerlResponseHandler => \&_my_response_hand

Re: setHandler question

2012-12-14 Thread Ryan Gies
On 12/14/2012 3:29 PM, André Warnier wrote: Ryan Gies wrote: On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r->finfo(); # do something to $finfo to set the flag $r->finfo($finfo); $r->handler('modperl'); $r->set_handle

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/14/2012 02:52 PM, André Warnier wrote: > Or am I totally off-track here ? I think yes, you are confused by the similarity of "finfo" and "OR_FILEINFO". The finfo part of $r is simply a data structure that represents the metadata of a file on the filesystem such as modification dates, access

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/14/2012 02:52 PM, André Warnier wrote: Or am I totally off-track here ? I think yes, you are confused by the similarity of "finfo" and "OR_FILEINFO". Yes, I was. Thanks for setting me right. The finfo part of $r is simply a data structure that represents the m

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/15/2012 01:30 PM, André Warnier wrote: > And somehow the $r->add_config() looks a bit like a roundabout way of > achieving what I want. If I can, kind of, "stuff" an additional > SetHandler configuration directive into the Apache configuration for my > request, telling Apache "now do as if t

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache configuration for my request, telling Apac

Re: setHandler question

2012-12-16 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache configuration for my

Re: setHandler question

2012-12-16 Thread Rafael Caceres
Andre, Ryan Gies wrote: > On 12/14/2012 8:52 AM, André Warnier wrote: >> I suppose that in the end I will want to do something like this : >> >> my $finfo = $r->finfo(); >> # do something to $finfo to set the flag >> $r->finfo($finfo); >> $r->handler('modperl'); >> $r->set_handlers(PerlResponseHan

Re: setHandler question

2012-12-17 Thread André Warnier
Rafael Caceres wrote: ... What you want works for me when reverse proxying to Tomcat or another Apache by adding a require valid-user inside the LocationMatch Thanks for your interest. That would indeed work if my authentication sub returned an "auth required" when the request is not authen