[Mod_gzip] mod_gzip, multiple VirtualHosts and mod_ssl.
Erik Enge
mod_gzip@lists.over.net
03 Oct 2002 14:24:13 -0400
Hey all.
I've read the previous posts about this very same subject, but I'm not
able to figure out what I'm doing wrong.
We have users request ourdomain:2000 over HTTP. Then we Redirect them
to https://ourdomain:2001. At ourdomain:2001 I have a VirtualHost which
ProxyPasses everything to http://ourdomain:2002 (a Zope instance).
I want mod_gzip to compress traffic between the user and our Apache
box. My current configuration is:
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 100000
mod_gzip_dechunk Yes
mod_gzip_item_include mime ^text/*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include handler proxy-server
mod_gzip_item_include handler cgi-script
mod_gzip_item_exclude rspheader Content-Type:image/*
mod_gzip_item_exclude mime text/css
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.js$
However, what I get in the log files are typically things like:
192.168.1.2 - - [03/Oct/2002:14:01:31 -0400] "GET / HTTP/1.1" 304 - mod_gzip: SEND_AS_IS:NO_200 In:0 Out:0:0pct.
192.168.1.2 - - [03/Oct/2002:14:01:54 -0400] "GET / HTTP/1.1" 302 0 mod_gzip: CAP_FILE_EMPTY In:0 Out:0:0pct.
192.168.1.3 - - [03/Oct/2002:14:04:46 -0400] "GET / HTTP/1.0" 200 10792 mod_gzip: DECLINED:NO_ACCEPT_ENCODING In:0 Out:0:0pct.
I guess the last one is because mod_gzip only works with HTTP/1.1 and
that's fine. However, I would expect the first and the second ones to
have compressed the / document. Why isn't arent't they being
compressed?
Thanks for any pointers,
Erik Enge.