Apache modules to limit the (cpu/ip/etc) usage [need help]

Canglan

New member
Joined
Jan 15, 2005
Messages
4
Hello guys,

I currently have an unmetered server which has FreeBSD 5.3-STABLE and Direct Admin installed. In order to not to limit the bandwidth usage, I decided to limit the ip, cpu load, etc usage.

My host provider told me that mod_throttle and mod_bandwidth are installed by default by Direct Admin. And I've asked them to install mod_limitipconn and mod_load as well, and they've done it.

So currently I have these modules installed:
mod_throttle
mod_bandwidth
mod_limitipconn
mod_load

What I want to do is:
* To limit the simultaneous IP connections to 2 server-wide to prevent from leeching. (But it shouldn't affect normal web page browsing)
* To limit the maximum download speed of each ip connection to 30k/s server-wide.
* To limit (apache) simultaneous requests to a certain number for each vhost.
* To limit the maximum cpu load for each vhost, for example, 0.10 0.20 0.50.

I have searched on google as well as on WHT. I have followed the instructions given, however, I still cannot get them working. Maybe I have missed something?

Could you guys kindly provide me a step-by-step instruction on configuring and running these modules? I am sorry this sounds very childish, however without a step-by-step instruction, I'm afraid I still won't be able to get it.

Recent updates:
mod_bandwidth is working now. However, I still can't figure out the others.

When I set ExtendedStatus to On in httpd.conf and then restart apache, I got the following error.

Syntax error on line 105 of /etc/httpd/conf/httpd.conf:
Invalid command 'ExtendedStatus', perhaps mis-spelled or defined by a module not included in the server configuration

I have mod_status (which is the one required for ExtendedStatus) installed and loaded.

Errr.... So why is this not working...


Any comment or advice is welcomed!

Thank you very much!
 
Interesting stuff....


ExtendedStatus should be used on the server wide httpd.conf, it's not supported on a vhost-by-vhost basis. Other than that, I don't know...
 
Hi markus, thanks for your reply. In fact, I am using it in the server wide httpd.conf

:(
 
how can i install

mod_throttle
mod_limitipconn

i got a Fedora 4 and Directadmin.
 
Back
Top