Resolver not re-resolving new ip address of an AW ELB nginx-forum at
Tue Oct 31 03:25:00 UTC 2017

you have two choices if the variable use is not working and you specifically
need to use upstream config option.

1. Subscribe to Nginx Plus.
2. Compile this module along with Nginx .. 

I have personally used this module and it works.

Posted at Nginx Forum:,277101,277147#msg-277147

More information about the nginx mailing list