A new Apache 1.3.37 is out and I had to upgrade all my servers to it, in the process I've had to compile mod_deflate, a high performance compression module that works MUCH faster then mod_gzip. This is primarily thanks to the fact it does not use temporary files, but instead does everything in memory. Since the official mod_deflate package has been abandoned by its author, even though the code still works with a few minor tweaks. So, I've decided to post a patched version of this module for all interested Apache 1.3.37 users.
The package also includes a short README files that explains how to install this module on your server. For people too lazy to read the README, the instructions follow at the bottom of this blog entry
Installing mod_deflate
--------------------------------------------------------------------------
1) Apply mod_defalte.patch on top of Apache 1.3.37
2) copy mod_defalte.c into the src/modules/extra directory
3) Add --activate-module=src/modules/extra/mod_deflate.o to your configure
At this point you can proceed with the regular Apache installation.
# To enable mod_deflate you need to add "DeflateEnable On" to you httpd.conf
DeflateEnable On
# Minimum size of the content to compress
DeflateMinLength 3000
# Compression ration (1 best performance & smallest compression) (9 worst
# performance and best compression)
DeflateCompLevel 5
# Don't try to compress proxied content.
DeflateProxied Off
# Minimum HTTP version necessary to enable compression
DeflateHTTP 1.0
# This setting allows you to avoid compressing content for browser that do
# not support it
DeflateDisableRange "MSIE 4."
# Unfortunately mod_defalte does not support masks such as text/* so you
# need to explicitly identify all of the mime types you wish to compress.
DeflateTypes text/plain
DeflateTypes text/html
DeflateTypes application/xml
DeflateTypes application/x-javascript
DeflateTypes httpd/unix-directory
DeflateTypes text/xml
DeflateTypes text/css
/sys/admin/blog on : mod_deflate on Apache 1.3.x
www.geekride.com on : PingBack