Try issuing the directive;
proxy_set_header
>proxy_set_header Host $host:$proxy_port;
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,238933,238976#msg-238976
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo
Hello!
On Tue, May 07, 2013 at 06:48:11AM -0400, Krupa wrote:
> There are no rewrite policies.
> location /gw_proxy {
> #internal;
> #resolver 8.8.8.8;
> proxy_http_version 1.1;
> proxy_pass http://50.112.76.185:9001;
> proxy_pass_reque
There are no rewrite policies.
location /gw_proxy {
#internal;
#resolver 8.8.8.8;
proxy_http_version 1.1;
proxy_pass http://50.112.76.185:9001;
proxy_pass_request_body off;
proxy_set_header Content-Length 0;
}
invoke
Hello!
On Tue, May 07, 2013 at 05:45:50AM -0400, Krupa wrote:
> I am using nginx as a reverse proxy. My requirement is nginx needs to pass
> the url passed by client as-is to the proxy server.
> I have set the proxy_pass to hostname:port without the uri part
> As per the docs ,If it is necessary
I am using nginx as a reverse proxy. My requirement is nginx needs to pass
the url passed by client as-is to the proxy server.
I have set the proxy_pass to hostname:port without the uri part
As per the docs ,If it is necessary to transmit URI in the unprocessed form
then directive proxy_pass should