Manage Apache Download Speed And Traffic Limits With mod_cband - Page 2
3 Apache ConfigurationYou can find all configuration directives on mod_cband's documentation page http://cband.linux.pl/documentation; I will describe the most important ones here. In this chapter I assume we have a web site www.example.com on the IP address 1.2.3.4 with the document root /var/www and the following vhost configuration:
Please note: It is important that your vhost includes the ServerName directive (e.g. ServerName www.example.com) and that your mod_cband directives come after that directive, otherwise you will get a warning like this when you restart Apache:
You can use the following units in the mod_cband directives: Transfer speeds:
Transfer quotas:
Time periods:
First we add the following two directives to the global Apache configuration (not to the vhost from above!). They are needed to improve mod_cband's performance. Debian: vi /etc/apache2/apache2.conf Fedora: vi /etc/httpd/conf/httpd.conf
Now we create the scoreboard directory for our www.example.com vhost, /var/www/scoreboard. The directory must be writeable by the Apache user: Debian: mkdir /var/www/scoreboard Fedora: mkdir /var/www/scoreboard
3.1 Configure Download SpeedNow let's say we want to limit the download speed. We can do it like this:
The CBandSpeed directive limits the overall Apache performance for the www.example.com vhost to a speed of 1024kbps, max. 10 requests per second and max. 30 open connections. The CBandRemoteSpeed is like the CBandSpeed directive, but it sets limits for any individual user (as compared to the overall settings made by CBandSpeed). After your changes, you must restart Apache: Debian: /etc/init.d/apache2 restart Fedora: /etc/init.d/httpd restart
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning




print: 

Recent comments
12 hours 3 min ago
14 hours 4 min ago
17 hours 15 min ago
19 hours 35 min ago
20 hours 45 min ago
22 hours 3 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 5 hours ago
1 day 20 hours ago