Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    142

    Default Limit the number of connections for Apache per Virtual Domain?

    We have several servers, one particular server has an extremently popular site which at this time of year receives huge numbers of hits and this results in a huge number of concurrent connections and appears to be causing Apache to appear down for new connections after the maxclients limit is reached.

    Can you recommend what should be done in this case and whether the maxclients for that particular virtual host can be limited to a value so that other sites are not affected.

    Ive looked at mod_throttle but that would appear to be really for limiting bandwidth usage per virtual host for example, where Im looking to limit the maxclients/connections per virtual domain.

    Any help appreciated.
    Mike

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge anton_latvia's Avatar
    Join Date
    May 2004
    Posts
    277

    Default

    For apache 1.3 you can use mod_ipdrop. Here is how I install and configure it:

    Code:
    cd
    cd install
    mkdir ipdrop
    cd ipdrop
    wget http://miksir.pp.ru/mod_ipdrop_v001/Makefile
    wget http://miksir.pp.ru/mod_ipdrop_v001/mod_ipdrop.c
    APXS=/usr/local/apache/bin/apxs make
    APXS=/usr/local/apache/bin/apxs make install
    
    vi /etc/httpd/conf/httpd.conf
    
    
    /etc/init.d/httpd restart
    
    ##		 ##
    #  CONFIGURATION  #
    ##		 ##
    
    GlobalMaxConnectionsPerIP 10 10 10 
    IPDropDebug 1
    * http://www.aleksandrov.eu/ - just a simple personal homepage.

Similar Threads & Tags
Similar threads

  1. Number of Imap connections ?
    By nyjimbo in forum E-mail Discussions
    Replies: 0
    Last Post: 12-08-2010, 09:37 PM
  2. How do I increase the number of connections for pop3d?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-17-2008, 03:05 PM
  3. Replies: 3
    Last Post: 05-12-2007, 07:46 AM
  4. exceeding maximum number of connections imap
    By dc2447 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-08-2006, 01:44 PM
  5. Limit the maximum number of each domain can send out per hour
    By seeyes in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-06-2005, 06:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube