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
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
We have same problem with MAXCLIENTS, any help?
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.![]()
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.
I was curious and after a spot of Googling I found mod_vhost_limit
From the mod_vhost_limit website:
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.This is the module for Apache Web Server to restrict the number of simultaneous connections per a virtual host.
The example the website gives looks very promising:
This sounds like just what you need. Post back here letting us know how it goes as this sounds very useful.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>
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 ?
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.