Installing mod_limitipconn on a Cpanel server

Absolutely essential in a shared hosting environment. This example is relevant to Apache 2.2.x.

#############
## Compile mod_ipconnlimit
cd /root
wget http://dominia.org/djao/limit/mod_limitipconn-0.23.tar.bz2
tar xjf mod_limitipconn-0.23.tar.bz2
cd mod_limitipconn-0.23
/usr/local/apache/bin/apxs -cia mod_limitipconn.c  ### this needs to be redone after each apache recompile


## in WHM, add to apache Pre VirtualHost Include (all versions)
<IfModule mod_limitipconn.c>
    # Set a server-wide limit of 10 simultaneous downloads per IP,
    # except for image folders.
    MaxConnPerIP 10
    NoIPLimit image/*
    NoIPLimit images/*
</IfModule>
##############

One Response to Installing mod_limitipconn on a Cpanel server

  1. priya patil says:

    Short and precise solution for mod_limitipconn installation on Cpanel..thanks