When I put the http proxy behind nginx using proxy_pass
directive, the http proxy receives a request like GET /some/path
while it expects to receive a request like GET http://some.domain/some/path
. How should I configure nginx to not omit the hostname passed URL? Note that only setting the Host
header is not enough for the http proxy to function correctly.
Asked
Active
Viewed 294 times
0

semekh
- 145
- 6
-
1nginx does not expect to need to do this. Use a forward proxy such as squid. – Michael Hampton Jul 12 '15 at 12:36
-
@MichaelHampton as Nginx developers said, Nginx is not forward proxy and doesn't need to be used this way – Anatoly Jul 13 '15 at 21:46