coffee23

Active Member
Nov 13, 2004
28
0
151
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. :)
 

northtrex

Active Member
Feb 26, 2005
30
0
156
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.
 

webignition

Well-Known Member
Jan 22, 2005
1,876
2
166
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.
 

northtrex

Active Member
Feb 26, 2005
30
0
156
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 ?
 

RickG

Well-Known Member
Feb 28, 2005
238
2
168
North Carolina
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.