Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have Apache virtual hosting, can I set maximum concurrent connection for each host?

I have an API service that get a lot of requests and starve the main site, can I limit the concurrent connection to whereas get more connection.

share|improve this question
up vote 0 down vote accepted

Have a look at mod-bw: (libapache-mod-bw on Debian).

But this doesn't really solve your problem, as now the clients that want to access will run into problems. Can't you offload the API stuff to a separate server?

share|improve this answer

Installing a 2nd apache on the same machine on a different IP (or port), or even an nginx or lighttpd would be my solution if you don't have the option to get a 2nd server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.