mod_limitipconn.so doesn't work?

Aziz

Verified User
Joined
Oct 4, 2004
Messages
125
I have installed mod_limitipconn.so on my server Apache 1.3/Fedora.

I put this rule on the main httpd.conf:

Code:
LoadModule limitipconn_module /usr/lib/apache/mod_limitipconn.so
AddModule mod_limitipconn.c
<IfModule mod_limitipconn.c>
    <Location />
        MaxConnPerIP 1
    </Location>
</IfModule>

But it will not work. I could download/view more than two files at the same time?

for the location, I also tried: <Location /*> <Location /*.*>.

I am trying to block more than one connection to the server @ PORT 80.

I also tried to look for iptable rule, but never succeeded.

Thanks,
 
Dunno mate, what you trying to do..but worked for me

I installed as DSO and got information from here
http://dominia.org/djao/limitipconn2.html

then added following to the domains's_httpd.conf

http://dominia.org/djao/limitipconn2-README
<IfModule mod_limitipconn.c>
<Location />
MaxConnPerIP 9
# 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>

Works fine (y)

p.s. Apache 2 m using !
 
Here is what was wrong:

1) The code should've been within the <VirtualHost IP:80> </VirtualHost> tags.
2) The following must be uncommented (default is commented):

Code:
ExtendedStatus On
<Location /httpd-status>
SetHandler server-status
</Location>

3) Before you Make the script, you need to edit APSX variable in "Makefile" file to reflect the path of your aspx file.

Thats it, everyone should work fine.

Also I created a custom 503 page to make it look "nice".

I was helped by user rootbinbash @ DP

Peace,
 
Last edited:
Back
Top