[Zope] apache+mod_gzip+zope

bak@nstp.com.my bak@nstp.com.my
Fri, 23 Feb 2001 12:58:56 +0800


hi all
today i took another plunge and installed mod_gzip.  v1.3.17a2

judging by the a, it looks like it's alpha.  anyways..

my setup
zope2.2.5 (with mod_pcgi2), apache 1.3.12, on linux
installed mod_gzip witout a hitch. modified httpd.conf
---as follows---
LoadModule gzip_module   modules/mod_gzip.so=20
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n=20
In:%{mod_gzip_input_size}n=20
Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct."=20
common_with_mod_gzip_info2
CustomLog /var/log/httpd/mod_gzip_log common_with_mod_gzip_info2  =20
# 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 mime "application/x-httpd-cgi"
mod_gzip_item_include mime text/*
mod_gzip_item_include mime "httpd/unix-directory"
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 "\._html$" <-----[1]
mod_gzip_item_include handler "^pcgi-handler$" <---[1]
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"

since i serve zope thru mod_pcgi2 (thanks oleg), i add [1] above.  and af=
ter=20
sometime, here's the savings i got
 ----mgstat mod_gzip_log-----
=20
Number of all requests: 5124
Number of requests that were compressed: 756 (14%)
Without compression it would be: 12 mb (12767 kb -> 13073489 bytes)
Effective amount of bytes sent: 3 mb (3132 kb -> 3207908 bytes)
=20
Only 24% of real amount of bytes was sent to the clients.
Saved bytes by mod_gzip: 9 mb (9634 kb -> 9865581 bytes)
=20
Log was analyzed in 0.951587 sec =20
--------
which is quite good, me think


tested with netscape ok
msie 5.5 ko
konqi ok
others, not too sure.

will report soon, when i got more info

thanks





--=20

http://www.kedai.com.my/kk=20
http://www.kedai.com.my/eZine=20

use Zope?  then you got HOPE!