Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

Configuring Apache like this:

SetOutputFilter INFLATE;proxy-html;DEFLATE

solved my problem.

share|improve this answer
    
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
add comment

Try disabling mod_deflate in your Apache configuration.

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

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.*

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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