Projects / mod_gzip


mod_gzip, a content acceleration module for Apache, contains a highly optimized and Web server thread-safe version of gzip. It runs perfectly as either an external DSO load module or built right into the core.


RSS Recent releases

Release Notes: This version now has 'in memory' compression turned back on, and it also now has the ability to check for pre-compressed versions of files, and will automatically send them if/when they are available. Static files no longer have to be compressed 'on the fly'. There is also now a new 'item' type called 'uri', which can be used with include/exclude item records in addition to the existing mime, file, handler, reqheader, and rspheader item types.

Release Notes: This release features minor improvements in the include/exclude content directives.

  •  30 Jan 2001 06:13

    Release Notes: First release.

    RSS Recent comments

    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 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
    www.remotecommunicatio... 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).


    Project Spotlight


    Extensions providing additional features for Dolphin's right click menu in KDE.


    Project Spotlight


    A LED matrix controller.