Apache

See https://svn.apache.org/repos/asf/httpd/sandbox/mod_bw/mod_bw.txt for more information, but after installing the mod_bw module using, e.g., apt-get install libapache2-mod-bw && a2enmod bw, the following directives can be added to a virtual host's declaration to limit the per-user bandwidth to 56kbps:

BandWidthModule On
ForceBandWidthModule On
BandWidth all 56000
MinBandWidth all -1
  • Last modified: 2022-03-20 08:47
  • by Peter