> Works fine on any 2.2.x.  What's the problem?
>

Thanks - I got it working :)

But I have not been able to get it to work for PHP files.
(HTML and TXT output is fine). Do you know how to
tell it to process PHP output?

I have the following in httpd.conf

# PHP Configuration
#---------------------------------------
# Old Way
##AddHandler php5-script php
##AddType    text/html php

# New Way
# See: http://www.php.net/manual/en/install.unix.apache2.php
<FilesMatch \.php$>
        SetHandler application/x-httpd-php
</FilesMatch>

<Directory "/web/">
...
                #SetOutputFilter Sed
                AddOutputFilter Sed html
                AddOutputFilter Sed php
                AddOutputFilterByType Sed application/x-httpd-php
                #AddOutputFilterByType Sed text/html
                #AddOutputFilterByType Sed text/plain
                OutputSed "s/santa/father christmas/g"
...
</Directory>

I've tried using an AddType for php, and matching using
AddOutputFilterByType
but it makes no odds. The output from php files is not passed through sed.

Any ideas?

Paul

Reply via email to