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
ProxyPass /foo http://localhost:8080/bar
ProxyPassReverse /foo http://localhost:8080/bar

Is localhost with respect to the client or the server?

share|improve this question
up vote 0 down vote accepted

Localhost is in respect of the server or rather the machine which is asking the question. When a system does a name service lookup for localhost it will (most likely) get or ::1 back as the address. This is the address of the loopback interface on the local machine.

share|improve this answer
so, what machine is "asking" the question in this case. The client is requesting a url through http, but the reverse proxy is on the server... – Evil Elf Mar 28 '11 at 20:35
The server is asking the question - it has to translate your proxy directives into addresses so it can hand the client off to that address:port – Iain Mar 28 '11 at 20:37

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.