<div dir="ltr">Hi,<br><br>We are using nginx for load balancing dynamically discovered upstream endpoints. We are in need to attach upstream hostname as header Host in upstream requests. For example below is my existing conf extract.<br><br>upstream products {<br>    server hostname1:port1;<br>    server hostname2:port2;<br>}<br>server {<br>    location /products {<br>        proxy_pass <a href="http://products">http://products</a><br>    }<br>}<br><br>All requests are load balanced and working fine. Now we are in need to add http header "Host: hostnameX" (ex: hostname1 or hostname2, not its IP) in all requests to upstream. How can we get this done in nginx?<br><br>Regards<br></div>