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
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
>
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
> $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
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 => $