Click here to get back home

can apache::filter work with virtual location?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
can apache::filter work with virtual location? Qiang 07-28-2007
Posted by Qiang on July 28, 2007, 10:36 pm
Please log in for more thread options


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
<Files ~ (\.htm)>
SetHandler perl-script
PerlSetVar Filter On
PerlHandler MyFilterPkg::MyFilter
</Files>


## 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
<Location /test1>
SetHandler perl-script
# This is the regular perl handler
Perlhandler MyHandlerPkg::TestHandler
PerlSetVar Filter On
PerlHandler MyFilterPkg::MyFilter
</Location>

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


Similar ThreadsPosted
Apache::DBI + mod_perl 2.0.1. Please, help! Cannot get it work! November 2, 2005, 7:58 am
virtual file concatenation February 19, 2007, 4:54 pm
default location for apache2.pm October 3, 2005, 11:39 pm
starting apache with mod_perl, error on Apache.pm July 21, 2004, 5:34 pm
mod_perl -> Can't enable PerlResponeHandler in January 7, 2008, 7:06 am
Filter::Simple bug? December 21, 2004, 9:54 pm
opendocument -> csv filter ? September 20, 2006, 10:28 am
Email::Filter hello world August 15, 2004, 3:36 pm
where can download Filter::netcrypt February 22, 2005, 9:55 pm
Perl Tk::FBox and filter argument January 30, 2007, 2:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap