|The stupid question is the question not asked|
Apache::Filter and Apache::RegistryFilterby thraxil (Prior)
|on Nov 19, 2003 at 06:07 UTC||Need Help??|
thraxil has asked for the
wisdom of the Perl Monks concerning the following question:
i'm trying to figure out how to write filters using Apache::Filter.
by modifying recipe 15.4 in the Mod_Perl Developer's Cookbook, i've got the following toy filter which just lowercases pages:
with the following in my apache conf, it works just like you'd expect on static html files:
i'm having trouble getting it to filter the output of Registry scripts though. my understanding is that Apache::RegistryFilter should take care of it. i tried:
this just spits out the source code for the script. if i remove the 'Apache::LC' from the end of the PerlHandler line, it works like a regular Registry script.
i tried making some other filters from the same template and i could chain them all together without any problems. i just can't seem to get any registry type action in. i also tried some other filter aware modules from CPAN like Apache::Dynagzip, and those seemed to work ok, even with RegistryFilter scripts.
at this point, i'm really not sure if it's a problem with my module, or with the apache config. can anyone spot any obvious problems with either or has anyone else done something similar and have any tips on getting it working?
(this is all with Apache 1.3.28, mod_perl 1.27, and perl 5.8.0)