Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    78

    Default limiting domain's connections?

    Hi,

    How can i limit connections from a domain? for example xyz.com is using maximum of the MaxClients.

    Any way to limit on per domain basis?

    Thanks

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    224

    Default

    We have same problem with MAXCLIENTS, any help?
    www.tys.us
    TYS-HR Datacenter
    100% uptime power & feed
    Colocation/Dedicated/Managed

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    28

    Default

    Hi,

    Thought i'dd bump this up as we now have the same problem with 1 account using all the "max clients", we have also set it to 250.

    If we could set a limit for that domain to say 100 that would be cool as we could then put the setting back down to 150 and that other 50 would be plenty for the other accounts on the server.

    I have just spend 2 hours searching but could not find anything so if anyone knows a fix/work around please let me know.

    Thanks in advance.
    Kind Regards,
    Coffee23.

    www.SloganIT.com

  4. #4
    Member
    Join Date
    Feb 2005
    Posts
    30

    Default

    Hello,

    In this case, this customer could increase your CPU LOAD. Take care ! We got some customers like that before and the only way to avoid that is telling him taking less ressource or giving him another host that can support his website. We can limit max clients connection from httpd.conf but it's for all users and not for only one.

    Hope it can help.

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default mod_vhost_limit

    I was curious and after a spot of Googling I found mod_vhost_limit

    From the mod_vhost_limit website:

    This is the module for Apache Web Server to restrict the number of simultaneous connections per a virtual host.
    The URL is http://www.nowhere-land.org/programs/mod_vhost_limit/, although this is currently timing out for me (perhaps I'm just unlucky). The Google cache seems to work fine though which may be enough to check the documentation for now.

    The example the website gives looks very promising:

    Code:
    <VirtualHost *>
        ServerName       server1
        DocumentRoot     /some/where/1
        MaxVhostClients  100
    </VirtualHost>
    
    <VirtualHost *>
        ServerName       server2
        DocumentRoot     /some/where/2
        MaxVhostClients  30
    </VirtualHost>
    
    <VirtualHost *>
        ServerName       server3
        DocumentRoot     /some/where/3
    </VirtualHost>
    This sounds like just what you need. Post back here letting us know how it goes as this sounds very useful.

  6. #6
    Member
    Join Date
    Feb 2005
    Posts
    30

    Default

    Hello,

    I tried the domain limitation and it won't work. I wrote the line in the section of the domain and apache restart fail.

    MaxVhostClients 100

    Why ?

  7. #7
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    Adding the directives into your httpd.conf file is not all that is required.

    You first have to compile the mod_vhost_limit module into apache before modifying httpd.conf.

    It looks like there is a tar.gz file you can download from the web site listed in this thread. Keep trying to get to the site.

Similar Threads & Tags
Similar threads

  1. Limiting connections from a single IP
    By egm1947 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-25-2009, 04:35 PM
  2. Replies: 0
    Last Post: 01-26-2008, 09:31 AM
  3. Limiting MySQL connections per user
    By Compila in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-16-2007, 10:19 AM
  4. Limiting http connections to a server?
    By PHIL_04 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-04-2003, 02:52 PM
  5. Limiting http connections to a server?
    By PHIL_04 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-04-2003, 02:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube