Portal Home > Knowledgebase > Articles Database > how Limit connections per ip Limit connections per ip
Posted by mixmox, 11-24-2010, 06:02 PM hello we have many conection on our server becasue our users download huge file like wma and ... . so we need some function to limit conection per ip. what should i do? after serach on google i find this module on apache: Log into ssh cd /usr/src wget http://dominia.org/djao/limit/mod_li...nn-0.22.tar.gz tar xzvf mod_limitipconn-0.04.tar.gz cd mod_limitipconn-0.04 pico Makefile find the line that reads APXS=apxs[/b] change that to APXS=/usr/local/apache/bin/apxs press cntrl O to save then cntrl X // if your locations to apxs is different locate apxs and copy the path then paste that in // make make install service httpd restart pico -w /etc/httpd/conf/httpd.conf locate ExtendedStatus Make sure ExtendedStatus is on and without the comment at the start and add this line to every virtual directory you want to limit or add it once to the main directory to limit all press cntrl O to save then cntrl X then service httpd restart so i try to add this lines on my httpd conf to limit download on mp3 extentions to 3: ExtendedStatus On MaxConnPerIP 3 # exempting images from the connection limit is often a good # idea if your web page has lots of inline images, since these # pages often generate a flurry of concurrent image requests NoIPLimit image/* MaxConnPerIP 1 # In this case, all MIME types other than audio/mpeg and video* # are exempt from the limit check OnlyIPLimit audio/mpeg video but nothing change. centos + directadmin TNX MaxConnPerIP 3 # exempting images from the connection limit is often a good # idea if your web page has lots of inline images, since these # pages often generate a flurry of concurrent image requests NoIPLimit image/* MaxConnPerIP 1 # In this case, all MIME types other than audio/mpeg and video* # are exempt from the limit check OnlyIPLimit audio/mpeg video mp3
Posted by jNive, 11-24-2010, 06:38 PM did you include LoadModule mod_limitipconn or relevant equivalent in your apache configuration?
Add to Favourites Print this Article