gillboss
04-25-2009, 10:21 AM
hello, i have many mobile users from philippine near about 500 and they all have same ip mean network provider provide one ip to all Gprs users my problem is when they all come online at my site then my server get slow and load go up to 10 so i want set limt connection like if 200 people online from one ip and one user more trying to open my site then he will get error "server busy try again" etc i have dedicate server also it has ConfigServer Security & Firewall so how to do it ?
thanks
azizny
04-25-2009, 07:10 PM
Install mod limitip (http://dominia.org/djao/limitipconn2-README) to apache.
Peace,
mioot
04-26-2009, 06:23 AM
here is the steps for installing
Login as root via SSH
cd /usr/src
wget http://dominia.org/djao/limit/mod_li...nn-0.04.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
vi /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
<IfModule mod_limitipconn.c>
<Location /somewhere>
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/*
</Location>
<Location /mp3>
MaxConnPerIP 1
# In this case, all MIME types other than audio/mpeg and video*
# are exempt from the limit check
OnlyIPLimit audio/mpeg video
</Location>
</IfModule>
press cntrl O to save
then cntrl X
then service httpd restart
cedced
05-02-2009, 09:21 AM
wget http://dominia.org/djao/limit/mod_li...nn-0.04.tar.gz
Link die
Error 404
Robert vd Boorn
05-02-2009, 09:23 AM
He copied it from here:
http://www.webhostingtalk.com/showthread.php?t=352388
but failed on the links, cause vbulletin cuts them short :D.
AaliyahRoma
05-03-2009, 07:39 PM
You can save last sessions in a mysql table and count them before you let main page.
gillboss
05-03-2009, 09:11 PM
You can save last sessions in a mysql table and count them before you let main page.
but with that way load will not reduce because user will hit first to apache