Bandwidth Throttling
WebServer Bandwidth Throttling
It is possible to set bandwidth throttling so that your full available bandwidth is not used up.
Note
The instructions are for Ubuntu Linux only, but can be used for other Linux systems using equivalent commands
Install the BW Apache module
CODEsudo apt-get install libapache2-mod-bwEnable the Module
CODEsudo a2enmod bwEdit your Apache site config file and add the appropriate settings below before start of the <VIRTUALHOST> start tag(
e.g. /etc/apache2/sites-enabled/mysite)
CODE# turn bw limitation on BandwidthModule On # force limitation on every request ForceBandwidthModule On # limit to 250kB/s Bandwidth all 250000 # Limit all requests to minimum of 250 kB/s MinBandWidth all -1Restart the Apache Server
CODEsudo /etc/init.d/apache2 restart- You can look at all the possible options (http://svn.apache.org/repos/asf/httpd/sandbox/mod_bw/mod_bw.txt)