[Mod_gzip] mod_gzip and mod_bandwidth.
MediaHost (TM)
mod_gzip@lists.over.net
Thu, 14 Aug 2003 22:38:30 +0200
Well, mod_gzip config looks fine to me:
Try the following:
# All needed modules...
LoadModule gzip_module libexec/mod_gzip.so
LoadModule bandwidth_module libexec/mod_bandwidth.so
ClearModuleList
#All your modules loaded up...
AddModule mod_gzip.c
AddModule mod_bandwidth.c
# Mod Bandwidth
# Your tmp folder...
BandWidthDataDir /apache/tmp/bandwidth
# Mod_Gzip
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles no
# All your gzip config...
# and than:
<VirtualHost 123.456.789.123:80>
# Blah blah...
# Bandwith limit for a whole Virtualhost
Bandwidth limit
BandWidthModule On
BandWidthPulse 1000000
BandWidth all 12288
MaxConnection 12
MinBandWidth all 1024
# Bandwidth limit just for a directory
<Directory /home/test>
BandWidth all 30720
</Directory>
</VirtualHost>
# Of course .htaccess should work the same way
I have it working here, without loosing gzip! How sad this would be, when
limiting bandwidth and NOT use gzip to compress....
Signer: Eddy Nigg
Company: StartCom Group at http://www.startcom.org
MediaHost (TM) at http://www.mediahost.org
----- Original Message -----
From: "Nacho" <ncc1701es@terra.es>
To: <mod_gzip@lists.over.net>
Sent: Thursday, August 14, 2003 10:21 PM
Subject: Re: [Mod_gzip] mod_gzip and mod_bandwidth.
> "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.
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>
---
StartCom Ltd.
http://www.startcom.org
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 8/14/2003