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.8
Files :
Purpose :
Changelog for v0.8 :
Platforms :
If you have any comments, bug reports, feature request, etc, soon there will be
a web-system to address all that stuff. Meanwhile, you can email me.
Bw_Mod v0.7 Previous Version
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.
NAME
mod_vhost_limit [Download
PURPOSE
Restrict the number of simultaneous connections per vhost
HISTORY
–   2007.04.06
Included some cleanup, and fixes suggested (and coded by) Chirouze Olivier
–   2004.02.26
Added compile.sh , to ease the compiling proccess.
–   2004.02.24
Initial revision 0.1
COMMENTS
Some people asked me about the original implementation for
Apache 1.3.x. Takato Satsuma was who wrote that, but appears that
his code has nowhere to be found.
As i kept a copy of it, i’m leaving it for download here :
mod_vhost_limit-0.4.tar.gz for apache 1.3.x
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!