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 ..
https://github.com/aziontech/nginx-upstream-dynamic-servers 

I have personally used this module and it works.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,277101,277147#msg-277147

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to