Antwort: RE: [Mod_gzip] apache 2.0.40 and error

Matthew Dickinson mod_gzip@lists.over.net
Tue, 20 May 2003 12:09:33 +0100 (BST)


On Tue, 20 May 2003 Michael.Schroepl@telekurs.de wrote:

> 
> Hi Matt,
> 
> 
> > What errors are you getting? The HAS_CE error?
> 
> Oops. HAS_CE isn't an error, it is a status code.

ok, so my adjective was a little wrong.


> 
> And it doesn't tell you anything went wront - on
> the opposite, it tells you that mod_gzip did some-
> thing _right_ that you would miss if you disable
> the code checking für this situation!
> HAS_CE tells you "I just protected any browser
> from receiving content that has been compressed
> twice, which would be dangerous as well as un-
> necessarily spent CPU load on the server".

the problem that i was having, was the mod_gzip thought the content being 
sent to it was already compressed, but i believe that it wasn't. It was 
just the php content that it thought was compressed, yet all the php 
configuration options were set to disabled for using PHPs compression.


> 
> > I had to do some hacking on the mod_gzip.c, version
> > mod_gzip-2.0.40.tar.gz, by commenting lines 2170-2189
> > out to get it to work for me.

I did this so i could get mod_gzip to compress the php pages, and haven't 
sufferend any problems with it so far.

> PHP even compresses more effectively than mod_gzip!
> ("gzip -9" vs. "gzip -6") but costs more CPU load
> when doing so.

maybe so, but i find that mod_gzip logs work well with awstats, and 
having clients hosted on various servers (4 in total) who use awstats also 
like to see the compression stats.

Matt