- Joined
- Mar 1, 2002
- Location
- Bristol [UK]
I've been trying to get mod_deflate to work on my website. It's running Apache2 on Windows 2000. I've set it up, and the module appears to load, but when I try and check the site, I get "ƒ" followed by two square boxes in IE. Mozilla asks me what application I want to use to download the file. I've tried using .php and .html files - they both behave the same. Even if I request a .gif which're supposed to be excluded from content compression, I get the same thing!
Here's the relavent bits of my httpd.conf :
If anyone has any idea why this might be failing, I'd be very happy to hear from you!
Here's the relavent bits of my httpd.conf :
Code:
LoadModule deflate_module modules/mod_deflate.so
Code:
#
# Setup mod_deflate (mod_gzip equivalent) compression
#
# Compress all content, manually excluding specified file types
<IfModule mod_deflate.c>
# place filter 'DEFLATE' on all outgoing content
SetOutputFilter DEFLATE
# exclude uncompressible content via file type
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip)$ no-gzip
<IfModule mod_headers.c>
# properly handle requests coming from behind proxies
Header append Vary User-Agent
</IfModule>
</IfModule>
# deflate.log, log compression ratio on each request
<IfModule mod_deflate.c>
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate.log deflate
</IfModule>
# Properly handle old browsers that do not support compression
<IfModule mod_deflate.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
If anyone has any idea why this might be failing, I'd be very happy to hear from you!