I have set up a reverse proxy and I'm using mod_filter for text substitutions i.e.:
FilterDeclare MYFILTER FilterProvider MYFILTER SUBSTITUTE "%{CONTENT_TYPE} =~ m|^text/html|"
FilterChain MYFILTER Substitute "s|some text|test|i"
This works fine on pages with status code 200 but doesn't seem to run on error pages (404, 503, etc).
Any ideas what I might be missing?
The docs say filter normally applies to response status 200. To enable it to all statuses we set environment variable filter-errordocs. See also mod_filter: Why does a SUBSTITUTE not work for certain URLs?