[Mod_gzip] Apache as a proxy server
Porter, Mark
mod_gzip@lists.over.net
Mon, 16 Dec 2002 19:59:05 -0500
I have a 1.3.27 server on Solaris running as a proxy server on our
internal network as a proof of concept. I can't seem to get compression
working, though.
Some details:
Apache 1.3.27
mod_gzip 1.3.19.1a
The end of httpd.conf:
# MOD_GZIP configuration
mod_gzip_on yes
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 60000
mod_gzip_item_include handler ^proxy-server$
mod_gzip_item_include mime "application/x-httpd-php"
mod_gzip_item_include mime text/*
mod_gzip_item_include mime "httpd/unix-directory"
mod_gzip_item_include mime "image/jpeg"
mod_gzip_item_include mime "image/gif"
mod_gzip_item_include mime "application/x-javascript"
mod_gzip_item_include mime "application/msword"
mod_gzip_dechunk Yes
mod_gzip_temp_dir "/tmp"
mod_gzip_keep_workfiles No
mod_gzip_item_include file "\.php3$"
mod_gzip_item_include file "\.txt$"
mod_gzip_item_include file "\.html$"
mod_gzip_item_include file "\.*"
#mod_gzip_item_exclude file "\.css$"
#mod_gzip_item_exclude file "\.js$"
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n
In:%{mod_gzip_input_size}n
Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct."
common_with_mod_gzip_info2
CustomLog /opt/apache/apache-proxy/logs/mod_gzip.log
common_with_mod_gzip_info2
ProxyRequests on
What I'm seeing in the logs when I access sites through the Apache
proxy:
<Source IP> - - [16/Dec/2002:18:24:42 -0500] "spider.lmig.com GET
http://www.libertymutual.com/corp/lmss-ie5.css HTTP/1.1" 200 22612
mod_gzip: - In:- Out:-:-pct.
Any ideas?