Install and configure Apache2 QOS module in Debian Squeeze

QOS stands for quality of service. It is an Open Source Apache2 module that is able to protect your server from various kinds of malicious access or attacks. A detailed list of what QOS can do to protect your server can be found in their website.

In this blog, we will demonstrate how to configure Apache2 with mod_qos, limit the number of connection per IP address, disallow slow connections that might be blocking the server, limit number of active TCP connections to keep server from running out of resources, and limit bandwidth and number of connections to some locations.