Re: [mp2] Runtime PerlResponseHandler

2005-07-22 Thread Tim Esselens
Philippe M. Chiasson wrote: >> Is PerlInitHandler a hook too early for adding PerlResponseHandlers? > Not too early, but the mapping / => index.phtml is done by mod_autoindex > at a later phase, so when your InitHandler _could_ kick in, the request > still has $r->filename point to the directory

Re: [mp2] Runtime PerlResponseHandler

2005-07-22 Thread Philippe M. Chiasson
Tim Esselens wrote: > Hi, > > I'm having problems with the following construct: > > -[httpd.conf] > > PerlInitHandler Dispatcher > > > -[Dispatcher.pm]- > sub handler() { > # do some stuff to get $module >

Re: [mp2] Runtime PerlResponseHandler

2005-07-22 Thread Tim Esselens
Geoffrey Young wrote: >> $r->push_handlers(PerlResponseHandler => $module); > you also need $r->handler('modperl') here, as apache needs to know which > content handler to dispatch to. I've added this before and after push_handlers, also tried $r->handler('perl-script') but none of them

Re: [mp2] Runtime PerlResponseHandler

2005-07-22 Thread Geoffrey Young
> $r->push_handlers(PerlResponseHandler => $module); you also need $r->handler('modperl') here, as apache needs to know which content handler to dispatch to. HTH --Geoff

[mp2] Runtime PerlResponseHandler

2005-07-22 Thread Tim Esselens
Hi, I'm having problems with the following construct: -[httpd.conf] PerlInitHandler Dispatcher -[Dispatcher.pm]- sub handler() { # do some stuff to get $module $r->push_handlers(PerlResponseHandler => $