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

I just wonder can Apache routing be slow?

My situation is this in. I define a ProxyPass, to different the incoming request ( for example, ) to the relevant port ( for example, port 81), then at the httpd.conf for the, I will have a few rewrite rules, some of them will direct the request to other domains. The reroutes will at most occurs 3 times. This means that the will be reroute to port: 81, and if it matches a certain condition, then it might be rewroute to And the will then be reroute to port 83 of another pc.

Do you think that such a reroutes will eat up a lot of time?

share|improve this question

migrated from Aug 1 '09 at 13:14

This question came from our site for professional and enthusiast programmers.

In general I would say that re-routes in the same network are fast. However, it is always a good idea to measure the delays yourself.

share|improve this answer

If you're using ProxyPass it's not routing it's proxying. So in the worst case scenario you have the overhead of setting up two additional TCP/IP connections and moving content over these connections, i.e.

A says "GET HTTP/1.0..." to B.
B says "GET HTTP/1.0..." to C.
C says "GET HTTP/1.0..." to D.
D says "Answer..." to C.
C says "Answer..." to B.
B says "Answer..." to A.

If it's high volume you're looking for, proxying is probably not a good idea.

Can you not achieve the same thing with redirection (mod_rewrite by rewriting the requests?)

share|improve this answer
Hi, not sure rewriting will be possible because I have to direct the request call from one machine to another ( albelt in the same network) – Graviton Mar 12 '09 at 10:38
AFAIK rewriting is possible across absolute URLs (i.e. in between different HTTP servers). – diciu Mar 12 '09 at 13:52

just a thought:

is it possible that your apache does reverse dns check for ip that sends the query? [ eg for logging ]? check if you have HostnameLookups directive in your config set to Off.

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.