

This entry was posted in Administration, Info.Tech, Operating Systems, SQL: Structured Query Language on Jby Camilo III Lozano.

This entry was posted in Administration, Linux System Administration, Operating Systems and tagged apache, limit bandwidth, mod_cband on Jby Camilo III Lozano. You can use the following units in the mod_cband directives: CBandExceededURL - if bandwidth exceeded, redirect to the specified URL.CBandScoreboard /var/www/scoreboard - scoreboard location.CBandExceededSpeed 128 5 15 - Bandwidth speed limit at 128kbps, 5 request/s and max of 15 connections.CBandLimit 500M - 500MB max bandwidth limit.Max bandwidth speed is 50kb/s, max 3 requests/s and max 3 connections CBandRemoteSpeed 50kb/s 3 3 - Individual apache performance.Max bandwidth speed is 1024bits per secs. CBandSpeed 1024 10 30 - Overall apache performance.You can check the status of certain vhost by accessing the URL: Next is add a “scoreboard” mkdir /var/as my vhost) conf.d]# cat ĬustomLog logs/-access_log conf.d]#Īfter you created the vhost file, restart your apache. Then add the code below at nf then save and restart apache. LoadModule cband_module /usr/lib/httpd/modules/mod_cband.so To check if successfully installed, type just like below and must have same result: ~]# cat /etc/httpd/conf/nf | grep mod_cband.so Download “mod_cband” from or direct download link at.

Install Apache Development libraries by casting “yum -y install apache-devel”.So, here’s what you will do… Assume you already installed the Apache. In my case, I am using Centos 5.5 and Apache 2.2.3 + mod_cband 0.9.7.5. This method is good for file-sharing website and for hosting servers. I’ve been experimenting on how I can limit the download speed via Apache configuration.
