Index: [Article Count Order] [Thread]

Date:  Mon, 30 Jul 2007 01:53:46 +0100
From:  "Vapor" <bluequartz (at mark) vaporised.com>
Subject:  [coba-e:10488] Re: Apache mod_deflate
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20070730004712.M43896 (at mark) vaporised.com>
In-Reply-To:  <200707291655.l6TGtvvL001384 (at mark) huda.muntadanet.com>
References:  <200707291655.l6TGtvvL001384 (at mark) huda.muntadanet.com>
X-Mail-Count: 10488

> Anyone done anything with Apache mod_deflate?  If so, what is your experience.
> Is the Apache in Brian's build already compiled with this module and 
> how do I check for those kinds of things?  IExample, for php you just 
> issue the phpinfo() command in a php page.

It's all in there on my 4.4/4.5 of Brians ISO's, prolly as far back as 2.5 as I'm sure 
I had it working then too, you just need to activate it and throw some parameters at 
it. httpd.conf level, I have a custom conf in /etc/httpd/conf.d for all my own 
amendments, the below is all I use:

### Addons - Enable Mod Deflate - Start ###
SetOutputFilter DEFLATE
DeflateCompressionLevel 8
DeflateMemLevel 8
DeflateWindowSize 14
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|exe|t?gz|zip|bz2?|rar)$ no-gzip dont-
vary
### Addons - Enable Mod Deflate - End ###

The line above the "End" line is 1 single line (if email is wrapped).

Leknor's GZIP checker (http://leknor.com/code/gziped.php) is enough to check with, 
although really is tests gzip content, but without mod_deflate apache won't compress 
anything by default (can do via php, so I'm told) - works for me anyways, let us know 
if you have any issues, parameters I use are gauged for low spec boxen, you could 
safely up them on heavier hardware.

Happy hunting :)

Brett