Bandwidth Throttling

WebServer Bandwidth Throttling

It is possible to set bandwidth throttling so that your full available bandwidth is not used up.


The instructions are for Ubuntu Linux only, but can be used for other Linux systems using equivalent commands


  1. Install the BW Apache module

    sudo apt-get install libapache2-mod-bw
  2. Enable the Module

    sudo a2enmod bw
  3. 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     
  4. Restart the Apache Server

    sudo /etc/init.d/apache2 restart 
  5. You can look at all the possible options (