Apache Modules :
bw_mod [a.k.a. mod_bandwidth] – mod_vhost_limit
Ivn Project License : [Download]
Author : Ivan Barrera (Bruce)
Contact E-Mail : Bruce (at ivn)
Status : Stable
Current Version : v0.92
Files :
Purpose :
Changelog for v0.92 :
Platforms :
If you have any comments, bug reports, feature request, etc, post it right here.
Bw Mod v0.8 [Readme]
Bw Mod v0.7 [Readme]
Bw_Mod v0.6 Still available, and with its README here.
Bw_Mod v0.5 Stable is obsoleted, and should not be used, unless you want to play with it.
Bw_Mod v0.5 RC1 is obsoleted, and should not be used, unless you want to play with it.
Mod_bandwidth v0.1 is obsoleted, and should not be used.
PURPOSE
Restrict the number of simultaneous connections per vhost
HISTORY
COMMENTS
If ExtendedStatus is Off, it wont work. Anyways, you’ll be warned
I was based on mod_vhost_limit from Takato Satsuma [takato@nowhere-land.org]
who wrote it for Apache1.3. Download it here
If you run into problems, be sure ExtendedStatus is set On before the
LoadModule sentence.Also note, that the MaxVhostClients must be after
the ServerName directive.
The download of mod_bw v0.8 – Source Code doesn’t work!
Hello,
I get this error trying to start apache after installing your 0.7 version of this module:
Cannot load /usr/local/apache/modules/mod_bw.so into server: /usr/local/apache/modules/mod_bw.so: undefined symbol: apr_atomic_cas
any ideas?
Sorry !
When i moved the downloads content from the old page, i didn’t update the links..
Thanks for the head’s up !
Yep.
First, try using v0.8
The error you are getting, is because some distributions (asuming you are using linux) uses a different APR lib, which do not use apr_atomic_cas anymore, and instead uses apr_atomic_cas32.
v0.8 should fix this for you… Or, if you want to stick to 0.7, replace all ocurrences of apr_atomic_cas with apr_atomic_cas32 (and i think, you will have to change some other keywords too, like atomic_add , etc)
0.8 works! I have a question, which answer didnt find in the .txt file.
Can I set vhost with unlimited bandwidth and speed, but will get only 50 simultaneous connections and no more?
Hi,
You need to put a bandwidth limit , with a ridiculously high limit, and then set maxconnections for the same network.
i.e.
BandWidth all 2000000
MaxConnection all 50
There have been some bugs about this feature when using the speed 0 as unlimited.. Thats why you need a limit.
(Ill fix this in the future)
Hi,
I use it in a Apache2 with CPANEL.
I create include files inside Virtual Host, use the config:
BandWidthModule On
ForceBandWidthModule On
LargeFileLimit .rar 500 5000
But the download speed still UP of my limit configuration param.
– Edit : The problem was that the configuration on the cluster took a little longer to refresh.
Hello,
I use Apache 2.2.x. Can i limit the monthly bandwidth amount of a vhost?
For example:
site.com : 10GB/Monthly
many thanks,
Best regards
Would be nice to have a maxconnection setting that would be applied per IP, like 3 connections max per ip..
Thanks!
Yeah,
Im working on that. Im sorry ive taken so long, but i have a huge pile of “to do” to do