Apache bandwidth limitation under Debian
This article describes how to activate bandwidth limits or the maximum number of connections on Apache webservers under Debian Wheezy. The idea behind this is that large downloads, for example, do not require the full bandwidth, allowing other websites behind the same connection to remain more accessible. Therefore, it can be also used for partial protection of DOS attacks (Denial of Service).
Installation of the mod_bw module under Debian Wheezy
apt-get install libapache2-mod-bw
Activation of the module
a2enmod bw
Configuration of the module
Add your desired VirtualHost for activating the module in the following configuration for example:
# activate bandwidth limitation BandwidthModule On ForceBandWidthModule On # limit total bandwidth to 1MB/s Bandwidth all 1048576 # limit max. connections to 25 MaxConnection all 25
More configuration options can be found here:http://legacy.ivn.cl/files/txt/mod_bw-0.8.txt
Source
|
Author: Christoph Mitasch Christoph Mitasch works in the Web Operations & Knowledge Transfer team at Thomas-Krenn. He is responsible for the maintenance and further development of the webshop infrastructure. After an internship at IBM Linz, he finished his diploma studies "Computer- and Media-Security" at FH Hagenberg. He lives near Linz and beside working, he is an enthusiastic marathon runner and juggler, where he hold various world-records.
|
|
Translator: Alina Ranzinger Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.
|


