1
ProxyPass /foo http://localhost:8080/bar
ProxyPassReverse /foo http://localhost:8080/bar

Is localhost with respect to the client or the server?

1 Answer 1

0

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.

2
  • 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, 2011 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
    – user9517
    Mar 28, 2011 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .