can apache::filter work with virtual location?

can apache::filter work with virtual location?

am 29.07.2007 04:36:22 von qiang

Hi,
I tried to use Apache::Filter to modify the HTTP output. It works for
static files, but not for dynamic perl handlers (virtual location). I
am using apache 1.3 and modperl 1. see below httpd.conf configuration.
Is this a configuration issue or Apache::Filter does not support
filtering for dynamic generated stuff?

thanks in advance,

Qiang


## works OK. Get results as desired

PerlModule Apache::Filter
PerlModule MyFilterPkg::MyFilter

SetHandler perl-script
PerlSetVar Filter On
PerlHandler MyFilterPkg::MyFilter



## It does not work. Server Generates a 404 error
## [Thu Jul 2613:42:32 2007] [error] xxxx/test1 not found

PerlModule Apache::Filter
Perlhandler MyHandlerPkg::TestHandler
PerlModule MyFilterPkg::MyFilter

#location test1 is a virtual location that is handled by a perl
handler

SetHandler perl-script
# This is the regular perl handler
Perlhandler MyHandlerPkg::TestHandler
PerlSetVar Filter On
PerlHandler MyFilterPkg::MyFilter


#The call to filter_input returns a 404 error too.
my ($fh, $status) = $r->filter_input();