Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
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

1 Answer 1

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 127.0.0.1 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

 
discard

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.