views:

39

answers:

1

I host a web application. This application serves static html pages that are refreshed at various intervals. Some as often as every 30 secs. At this time I have about 300 unique pages that are accessed via 300 unique subdomains. Some clients have at most 50 visitors to their unique page and it refreshes every 30 secs, no problem. Other clients have up to 1000 or more visitors to their page. These clients are killing my server.

There was no predefined limit upon signup but now I have to impose such a limit to remain afloat financially.

I would like to define a finite number of connections allowed for each individual subdomain in my hosting account. Connections attempted out of range of this finite value would either be rejected or redirected. I have access to .htaccess and php.ini. Is something of this nature possible? Oh, I have a dedicated/managed server at 1and1.

+1  A: 

I am not sure what control you have with 1and1 for installing modules for Apache or what versions/modules you currently have running but I think you are asking to be able to limit resources on a per virtual host basis, if this is the case maybe http://serverfault.com/questions/48843/apache-bandwidth-limiting-based-on-url will be of use.

plod