[Mod_gzip] mod_gzip and mod_proxy

Mark Evans mod_gzip@lists.over.net
Tue, 30 Sep 2003 23:18:54 -0500


i'm trying to get mod_gzip working with mod_proxy on apache_1.3.28.
mod_proxy seems to work. mod_gzip also seems to work. But looks like
they will not work together. The following is the relative parts of
my httpd.conf file


# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule gzip_module        libexec/mod_gzip.so
.
.
.
<IfModule mod_gzip.c>
        mod_gzip_on                   Yes
        mod_gzip_can_negotiate        Yes
        mod_gzip_add_header_count     Yes
        mod_gzip_minimum_file_size    500
        mod_gzip_maximum_file_size    500000
        mod_gzip_temp_dir             /tmp
        mod_gzip_keep_workfiles       No
        mod_gzip_maximum_inmem_size   60000
        mod_gzip_dechunk              Yes
        mod_gzip_item_include         mime       ^text/*
        mod_gzip_item_include         file       \.html$
        mod_gzip_item_include         file       \.htm$
        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       \.js$
        mod_gzip_item_exclude         file       \.css$
        LogFormat                     "%h %l %u %t \"%V %r\" %<s %b
mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out$
        CustomLog                     logs/mod_gzip.log
common_with_mod_gzip_info2
</IfModule>
.
.
.
end

The logfile shows files that have been downloaded but does not show the
compression stats.
the stats will only show if i do not try to go through mod_proxy. i have
included the handler for proxy-server.

any one have any other suggestions? any help will be appreciated.
Thanks
Mark
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003