Antwort: [Mod_gzip] problems with mod_proxy + mod_gzip

mod_gzip@lists.over.net mod_gzip@lists.over.net
Thu, 30 Jan 2003 10:48:38 +0200


Hi,


> 10.11.120.201 - - [29/Jan/2003:09:48:13 +0100] "proxyspand.bec.dk GET
> /a.html HTTP/1.1" 200 746 mod_gzip: OK In:102898 -< Out:416 = 100 pct.
> which is ok, and shows that the mod_gzip module is working fine.

congratulations - I have never seen a compression ratio of 100%
before. (Sounds like the /a.html contains _some_ redundant parts. ;-)

> mod_gzip: - In:- -< Out:- = - pct.
> which indicate that the gzip module never was activeted while using
> the proxy module

Correct.

> To do sure that it isn't just a bug in the log I have set up a sniffer
> (based on NAI Sniffer pro), if I look at the http header from the first
> http package (the GET package) I can see the following: Accept-Encoding:
> gzip, deflate, which indicate that the browser (IE 6.0 build 2800.1106
> xpsp1.020828-1920) supports content in a gzip format.
> On second http package (first data package) the http-header has no
> Transfer-encoding: gzip, in fact it was no Transfer-encoding: at all

Don't mix up content encoding and transfer encoding.

> LoadModule rewrite_module     libexec/mod_rewrite.so
> LoadModule proxy_module       libexec/libproxy.so
> LoadModule gzip_module        libexec/mod_gzip.so
> ClearModuleList

Why are you destroying everything you loaded before?

> AddModule mod_proxy.c
> AddModule mod_gzip.c

At least the order of the AddModule directives looks correct.

> mod_gzip_maximum_inmem_size   600000

Don't expect to get more than 60000 bytes.

> mod_gzip_item_include         handler    proxy-server

Good idea.

> <IfModule mod_proxy.c>
> ProxyRequests On

You really want _that_?
You wouldn't need it when using mod_gzip as a reverse proxy.

You seem to want to run Apache as a true proxy and then let
mod_gzip compress the whole traffic?
I am not sure whether this idea would make any sense, because
the only part of the transmission where the data would then
be compressed is between the browser and the proxy, i. e.
within your own network. You won't get foreign servers to
compress anything this way (assumed it will work at all).

Regards, Michael