PDA

View Full Version : Apache Not Gzipping


LanciaStratos
Fri 6th Aug '04, 1:28am
Mod_gzip doesn't seem to be working on my server. Right now I've got it enabled in httpd.conf, like this:

<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_send_vary yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_item_include file "\.htm$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include mime "text/.*"
mod_gzip_item_include file "\.php$"
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime "httpd/unix-directory"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
</IfModule>


Leknor (http://leknor.com/code/gziped.php?url=http%3A%2F%2Fwww.gtplanet.net%2Ffor um%2F) reports the pages as gzipped, however upon disabling gzip (by changing it to mod_gzip_on no), my page size does not change. Disabling it in httpd.conf and then enabling it in the AdminCP returns the same results. According to Leknor, my forum home page should be approximately 10 KB with level 1 compression, and instead it is more than 50 KB.

Server information can be found here (http://www.vbulletin.com/forum/showthread.php?t=108604). Any ideas as to what's going on?

Dave#
Fri 6th Aug '04, 6:10am
Have you disabled server tokens?

linux2> telnet www.gtplanet.net 80
Trying 205.209.148.120...
Connected to www.gtplanet.net.
Escape character is '^]'.
HEAD / HTTP/1.0
Accept-Encoding: gzip

HTTP/1.1 200 OK
Date: Fri, 06 Aug 2004 09:07:35 GMT
Server: Apache
Connection: close
Content-Type: text/html

Connection closed by foreign host.

Anyways this says the pages AREN'T gzipped.

You have added the module in httpd.conf?

Shining Arcanine
Fri 6th Aug '04, 12:14pm
Are you viewing your site in IE? Internet Explorer reports page size after decompression while Mozilla based browsers reports the page size before decompression. I don't know what Opera or Konquerer based browsers do.