I configured apache httpd to apply substitute. For my eyes it is exactly what the doc says. However it does simply nothing.
What is wrong with it?
<VirtualHost domain:443>
SSLEngine on
....
ProxyPass /cms/ http://domain2/
ProxyPassReverse /cms/ http://domain2/
Substitute "s|div|DIV|ni"
</VirtualHost>
(Apache 2.4.16 on Centos)
Meanwhile I figured out how to make it work
<VirtualHost domain:443>
SSLEngine on
....
# In some case the following line is neccessary
RequestHeader unset Accept-Encoding
<Location /cms >
ProxyPass http://domain2/
ProxyPassReverse http://domain2/
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|div|DIV|ni"
</Location>
</VirtualHost>
I hope this helps others to overcome similar problems.
(We use it to exchange urls from a proxied source, after hard work apache httpd is a great tool ;-))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With