Apache/IIS7 with mod_proxy, mod_deflate – Not outputting GZIP

So basically I’m creating this post so the next poor sysadmin who googles it (If any), can find an solution.

I spent about 3 hours trying to figure out why web pages accessed through an mod_proxy Apache server, and finally got it, although it was due to a configuration problem set on my end.

If you “SetEnv force-proxy-request 1.0 1”, this will encode all content under HTML 1.0, this for whatever reason (Read the RFC for HTML 1.0), removes the GZIP compression sent by IIS7.

Commenting out this line will let the GZIP/deflate compress work as it should, and pass the headers along.

  • J Marler

    This is why I love NginX. Apache as a reverse proxy is just too basic. NginX let’s you do all sorts of magical things that would never even be remotely possible w/ Apache.

    Thanks for the tip!

    Jon