upstream host name or address

torajx nginx-forum at
Sun Jun 19 15:26:58 MSD 2011

is it possible to find upstream host which serves as proxy for a
i know that $upstream_addr is the key ; but i need to set the address
with set_proxy_headdr as host
but $upstream_addr return address and port together

upstream test

location /
proxy_set_header Host $upstream_addr;  ---------> fail cause it set for
example but i need
proxy_pass http://test;

any suggestion ?

thank you in advance..

Posted at Nginx Forum:,208188,208188#msg-208188

More information about the nginx mailing list