Already tried $upstream_addr which unfortunately gives IP:port instead of hostname:port. My upstream needs hostname listed in conf instead of IPby sapientcloud - Nginx Mailing List - English
Hi, 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. upstream products { server hostname1:port1; server hostname2:port2; } server { location /products { proxy_pass http://products } } All requests areby sapientcloud - How to...