[Mod_gzip] mod_gzip and mod_bandwidth.

Nacho mod_gzip@lists.over.net
Thu, 14 Aug 2003 22:21:18 +0200


"MediaHost (TM)" wrote:
> 
> What is the order of your LoadModule and AddModule directive?
> 
> Load first gzip and at last bandwidth.
> 
> Per directory settings:
> 
> <Directory /home/you/www>
> Bandwidth limit
> BandWidthModule On
> BandWidthPulse 1000000
> BandWidth all 12288
> MaxConnection 12
> MinBandWidth all 1024
> </Directory>
> 
> (Just a example)
> 

Hi.

I usually load gzip before bandwidth with LoadModule. I dont use
AddModule. I've tried AddModule but configtest in Apache says that that
module was already loaded.

Your config for bandwidth used in httpd.conf works just as in the
.htaccess without the <Directory> directive, (except the Bandwidth limit
that produces an error) but I cannot mix it with the mod_gzip in the
same directory.

I attach my config of mod_gzip, maybe it is not well configured.


<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_can_negotiate  yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 10000000
mod_gzip_maximum_inmem_size 10000000
mod_gzip_item_include file \.*$
mod_gzip_item_include uri \.*$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime ^.*/.*$
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["
# mod_gzip_item_exclude mime ^image/.gif

</IfModule>


As you can see, it is basically the sample config but I have added some
lines to allow compression of all kind of mime-types and filenames. I
have a slow connection and I prefer to compress everything. This config
works fine, but without the module bandwidth.

Thanks to all for you efforts.