I have setup a reverse proxy on my workplace LAN so several sites can be accessed from outside our LAN. I have included the mod-proxy-HTML, so it handles the rewriting of URLs in the returned HTML.

However Firefox and Chromium complains about an encoding problem.

If I edit the network.http.accept-encoding option of Firefox and remove the default gzip;deflate; then the site looks ok.


Configuring Apache like this:

SetOutputFilter INFLATE;proxy-html;DEFLATE

solved my problem.

| improve this answer | |
  • 1
    I had to uncomment LoadModule deflate_module modules/mod_deflate.so in my httpd.conf file in order to make this work for me. – braveterry Mar 4 '13 at 1:55

Try disabling mod_deflate in your Apache configuration.

| improve this answer | |
  • That would do. However, I make SetOutputFilter INFLATE;proxy-html;DEFLATE and it worked. – manu Apr 11 '11 at 19:00

Use This:

ProxyHTMLCharsetOut *

*ProxyHTMLCharsetOut Syntax ProxyHTMLCharsetOut name This selects an encoding for mod_proxy_html output. It should not normally be used, as any change from the default UTF-8 (Unicode - as used internally by libxml2) will impose an additional processing overhead. The special token ProxyHTMLCharsetOut * will generate output using the same encoding as the input.*

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.