#1 (permalink)  
Old 10-16-2002, 03:27 PM
Registered User
 
Join Date: Mar 2002
Posts: 78
pats
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-17-2002, 12:30 PM
Registered User
 
Join Date: Dec 2001
Posts: 224
TRAIN YARD SOFTWARE
We have same problem with MAXCLIENTS, any help?
__________________
www.tys.us
TYS-HR Datacenter
100% uptime power & feed
Colocation/Dedicated/Managed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-02-2005, 09:00 AM
Registered User
 
Join Date: Nov 2004
Posts: 28
coffee23 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-03-2005, 01:25 PM
Registered User
 
Join Date: Feb 2005
Posts: 30
northtrex is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-03-2005, 01:42 PM
Registered User
 
Join Date: Jan 2005
Posts: 1,879
webignition is on a distinguished road
mod_vhost_limit

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

From the mod_vhost_limit website:

Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-05-2005, 05:36 PM
Registered User
 
Join Date: Feb 2005
Posts: 30
northtrex is on a distinguished road
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-05-2005, 06:35 PM
Registered User
 
Join Date: Feb 2005
Location: North Carolina
Posts: 237
RickG is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:30 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc