Hi,
I'm having problems with the following construct:
-[httpd.conf]------------------------------------
<FilesMatch \.phtml$>
PerlInitHandler Dispatcher
</FilesMatch>
-[Dispatcher.pm]---------------------------------
sub handler() {
# do some stuff to get $module
$r->push_handlers(PerlResponseHandler => $module);
return Apache2::Const::OK;
}
If I request http://localhost/index.phtml everything works perfectly
If I request http://localhost/ which in turn uses the DirectoryIndex
directive to get to index.phtml, the file is served from disk w/o using the
handler (as if it were a normal html file).
Thing is, If I add the following to my httpd.conf (say $module was Test::X)
everything works out fine (both URIs are processed by Test::X->handler())
<FilesMatch \.phtml$>
PerlResponseHandler Test::X
</FilesMatch>
Is PerlInitHandler a hook too early for adding PerlResponseHandlers?
Is there something special I need to do when I'm in my Dispatcher's handler?
(ie: return DECLINED or something similar to force processing of other
handlers maybe? I'm clueless)
--
kind regards,
Tim Esselens