Hello, brothers in faith!
I have apache2 with mod_perl/mod_php and some php software running on it. And I want to filter request headers for php scripts and filter its output again (both headers and body). php scripts are located under /php_area. The problem is, that if I write
<Location /php_area>
SetHandler modperl
PerlInputFilterHandler My::PHPInputFilter
PerlOutputFilterHandler My::PHPOutputFilter
</Location>
then php scripts stop being processed by mod_php and instead are output as plain php code.
For now I solved the problem by writing "proxy" response handler, which uses LWP to perform requests to php and give user back what I want (it's much simpler than fix all that php code), but i'm still interested in using filters - is it possible in this situation ?