Projects / mod_gzip / Comments

Comments for mod_gzip

26 Jan 2004 11:20 TheSpoonman

Re: mod_gzip for Apache 2.0

> I have found mod_gzip 2.0.40 source at
> this url:

Before I drive myself trying to get this to work, does anyone know if this mod will work with Apache in a proxy config? I'm using it to reverse-proxy to a bunch of machines behind my firewall, and would like to compress the pages served.

09 Apr 2003 09:08 z_smurf

mod_gzip 2.0 not serving pre-compressed files

The part of mod_gzip serving pre-compressed files seems to be missing in mod_gzip 2.0.

Therefore, I have figured out how to configure apache2 to do this *without* mod_gzip or any other compression/decompression module:

First you must enable "multiview" in your apache.conf (or in your .htaccess-file):

<directory ....>

Options MultiViews


Second, add a handle (anywhere in your httpd.conf) to make apache send the right Content-Encoding-headers:

AddEncoding x-gzip .gz

Now restart your Apache. To Verify that this really works, create a html-file named "foo.html.html" (yes, double html-extensions). Write something like "this is the uncompressed file" in it. Next, create a "foo.html"-file. Write something like "This is the compressed file". Do a compress from your shell:

# gzip foo.html

Now you should have two files: foo.html.html and foo.html.gz. Try navigate to http://localhost/foo.html. You will either see "this is the compressed file..." or "this is the uncompressed file" depending on what browser you are trying from.

This is only working if the real file is missing (eg. foo.html).

I believe this is much faster than both mod_gzip2 and mod_deflate, even though it requires double files on server.

09 Apr 2003 01:01 z_smurf

Re: mod_gzip for Apache 2.0 does not seem to work.

Apache2 comes with mod_deflate, which also can gzip all content on the fly before sent to client.
I tried it but did not gain very much bandwidth although the Load raised alot.

I have found mod_gzip 2.0.40 source at this url:

Binaries for win32 is found at this url:

30 Oct 2002 19:07 rverlander

Re: New page/maintainer

> Seems mod_gzip has a new maintainer
> (Christian Kruse).

Christian Kruse doesn't know much about mod_gzip, thier mod_gzip version won't even compile and that claim that it can gzip PDF files.

19 Sep 2002 14:59 lgn

New page/maintainer
Seems mod_gzip has a new maintainer (Christian Kruse).

04 Aug 2002 15:17 TuKo

Re: This module is underrated
mod_gzip with Apache 2.0 support is available at :

15 Nov 2001 05:54 jasonuk

This module is underrated
After installing and configuring this module I've seen our peak bandwidth load averages go from 500k a second down to 250k a second. (we have a 512k connection)

This module is a must try for anyone who needs to save some bandwidth, it works!


Project Spotlight


An open, cross-platform journaling program.


Project Spotlight


A scientific plotting package.