LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-15-2005, 10:46 AM   #1
tclwp
Member
 
Registered: Jan 2005
Posts: 37

Rep: Reputation: 15
APACHE: limit max connections from the same IP ?


hellow everybody

I've compliled the mod_limitipconn.c into httpd kernel(static),
#httpd -l has list mod_limitipconn.c out

and

# vi /var/www/conf/httpd.conf

<IfModule mod_limitipconn.c>
<Location />
MaxConnPerIP 3
</Location>
</IfModule>

# httpd -S
syntax ok

but after I started newly compiled httpd
and

# netstat -ant|grep my-server-ip:80

I still found a lot of connections from same IP(s).
Is there something I have to do to make the mod_limitipconn.c
work ?

Thanks a ton !!!
 
Old 03-16-2005, 03:51 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You don't mention mod_status, maybe that is the problem:

Notes:

This module will not function unless mod_status is loaded and the
"ExtendedStatus On" directive is set.

The limits defined by mod_limitipconn.c apply to all IP addresses
connecting to your Apache server. Currently there is no way to set
different limits for different IP addresses.


Hope this helps.
 
Old 03-17-2005, 01:00 AM   #3
tclwp
Member
 
Registered: Jan 2005
Posts: 37

Original Poster
Rep: Reputation: 15
# ./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_limitipconn.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

Look, mod_status.c was compiled into httpd

and ExtendedStatus was set to on already(apache version 2.0.53)
 
Old 06-24-2005, 11:47 AM   #4
emphaze
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
put it into commonhttpd.conf not in httpd.conf to get it work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase apache max connections? newlinuxnewbie Linux - General 5 08-29-2008 03:53 AM
howto limit max concurent connections ?? fritz001 Slackware 6 08-11-2005 11:38 AM
Limit browser connections to Apache and stop download accelerators Moloko Linux - Software 0 02-07-2005 07:38 AM
Max Connections message on Apache yanix Linux - Software 2 12-02-2004 01:25 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration