I have an 3 legged NGINX reverse proxy setup with External, Internal and DMZ networks.
NGINX has a reverse proxy server configured to listen on port 80 in the DMZ. I need to forward the request to another server via an upstream HTTP proxy, the request cannot be retrieved directly.
If I put the WEB proxy's IP address into upstream section - it sends "POST /DataService.svc HTTP/1.0" to http proxy and that obviously does not work.
Is it possible to rewrite $uri to include the host name in the request so it will look like "POST http://server.com/DataService.svc HTTP/1.0"
Should this work and how can I achieve this without installing squid etc...