Friday, September 21, 2012

Installing mod_iplimitconn In Apache On Linux With cPanel

First download the latest version of mod_limitipconn.c

Then load it into Apache with the APache eXtenSion tool (APXS)
/usr/local/apache/bin/apxs -cia mod_limitipconn.c
Now we have to modify the vhost parameter in cPanel to include it.

Log into cPanel as root and navigate to:

Main >> Service Configuration >> Apache Configuration >> Include Editor >> Post Virtual Host >> ALL Versions

...and add this code to the box:
<IfModule mod_limitipconn.c>
<Location /> 
MaxConnPerIP 10 
NoIPLimit images/* 
Save and restart Apache

No comments:

Post a Comment