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
sudo apt-get install libapache2-mod-bw
Enable the Module
sudo a2enmod bw
Edit 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)
# 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 -1
Restart the Apache Server
sudo /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)