PDA

View Full Version : mod_gzip problems...help?


Ed FvC
Sat 9th Feb '02, 12:45pm
I'm running mod_gzip on my server, with a pretty standard configuration. I'm hearing that people are having problems viewing certain files. Sometimes a page, particularly index.htm or index.html, will come up with all binary gibberish or they get prompted to download the file instead of just viewing it normally. This never happened before I loaded mod_gzip, but with our traffic, it's pretty necessary. Here's the config I'm using:<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_exclude file .css$
mod_gzip_item_exclude file .js$
mod_gzip_item_exclude mime ^image/.*
mod_gzip_dechunk yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate yes
</IfModule> Any ideas?? Thanks!

eva2000
Sat 9th Feb '02, 3:40pm
what browser and version are you using ?

can you post a few html/htm urls as examples

Ed FvC
Sat 9th Feb '02, 5:12pm
See, the thing is, I've never personally experienced this problem. Those that have mostly use Internet Explorer, but I'm not quite sure. It seems to happen when a file is linked straight to the 'index.html' file as opposed to just the directory where it's located (i.e. http://www.rajahwwf.com/index.html vs http://www.rajahwwf.com/). I really don't see the correlation since I thought browsers have been compatible with compression for quite some time now.

eva2000
Sat 9th Feb '02, 5:23pm
well i'm using IE 5.5 and can view both urls fine..

ask your visitors if they're using IE 5.x with http 1.1 enabled in options advance menu

Ed FvC
Sat 9th Feb '02, 7:30pm
I'm using IE6 and I turned off "Use http 1.1" just to try...and I still don't get any problems. :confused: Could this be some freaky mime type issue? I really don't want to remove mod_gzip just because of the massive amount of traffic we get...

Oh, a related question... In the mod_gzip config, is the $ at the end of a filetype a wildcard of sorts? I mean... wouldn't 'mod_gzip_item_include file \.htm$' be the same as 'mod_gzip_item_include file \.html$'?

Ed FvC
Mon 11th Feb '02, 4:07pm
Turns out it was a conflict with the FrontPage Extensions and mod_gzip...Since no one uses FrontPage, away it went! No more problems. :D Thanks again, Eva.

eva2000
Mon 11th Feb '02, 5:50pm
Originally posted by Ed FvC
Turns out it was a conflict with the FrontPage Extensions and mod_gzip...Since no one uses FrontPage, away it went! No more problems. :D Thanks again, Eva. ah microsoft the pain in everyone's back side :)