HostOnNet Blog

What is limitipconn ? and How to Install it ?

Looking for Linux Server Admin or WordPress Expert? We can help.

Limitipconn :-

limitipconn is a tool which is used to limit the number of connections per IP on our server. This tool can help in lowering the load on your server if someone connecting too many times from the same IP.

Steps to Install limitipconn :-

root@server [~] #  mkdir /usr/local/src

root@server [~] # cd /usr/local/src

root@server [/usr/local/src] # wget http://dominia.org/djao/limit/mod_limitipconn-0.24.tar.bz2

root@server [/usr/local/src] tar -xzvf mod_limitipconn-0.24.tar.bz2

root@server [/usr/local/src] cd mod_limitipconn-0.24

Now, we compile the module into Apache using:

root@server [/usr/local/src/mod_limitipconn-0.24] /usr/local/apache/bin/apxs -i -a -c mod_limitipconn.c

Now, that will create an entry in the httpd.conf file, and, if you want to retain that after an upgrade/rebuild, you need to tell cPanel not to take it out. To do that we need to run the following command :-

root@server [/usr/local/src/mod_limitipconn-0.24]  /usr/local/cpanel/bin/apache_conf_distiller –update

To change the configuration settings for mod_limitipconn, we need to add them in some place. All we have done so far, is install the actually module into apache, and, even with a restart, it would not be using it. So, I like to add things into my includes files through either WHM, or, directly through the terminal. To do this, we run the following:-

Here you can use your favorate editor to edit the file. For now I am using nano :-

root@server [/usr/local/src/mod_limitipconn-0.24] nano /usr/local/apache/conf/includes/pre_virtualhost_global.conf

One the file is open . add the following code.

ExtendedStatus On
<IfModule mod_limitipconn.c>
<Location />
MaxConnPerIP 10
NoIPLimit image/*
NoIPLimit image*/*
</Location>
</IfModule>

Save the file and thats it limitipconn has been installed

Posted in Linux, Web Hosting

One Response to What is limitipconn ? and How to Install it ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.