Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I'm using Apache to serve static content, and then reverse proxy-ing to a Rails server to process dynamic content, some of which can take a long time to generate. When Apache hands off a request to a reverse proxy, is an Apache process used up just sitting there waiting for a response (im using prefork mpm), or can it go off and process other requests, and just handle the response from the Rails server when the response is ready?

share|improve this question

closed as not a real question by Michael Hampton, mdpc, Khaled, Ward, mgorven Mar 4 '13 at 16:38

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

how the hell is this 'not a real question'?? Its clearly stated, and the answer directly affects whether I can use apache or whether I have to switch to nginx – Mohamed Hafez Mar 7 '13 at 23:34
up vote 2 down vote accepted

Using Apache Prefork MPM you will have at least one process for each concurrent request. And, each process will be serving one or zero requests (idle or spare).

So the process doing the reverse proxy to Rail, will be blocked till it gets completed (or error). Anyway, another connection can be open to the same server.

share|improve this answer

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