Using variables on nginx.

Valentin V. Bartenev vbart at nginx.com
Fri Apr 11 19:16:44 UTC 2014


On Friday 11 April 2014 13:58:44 Raul Hugo wrote:
> I can Use variables to define IP:Port on upstreams directive?
> 
> For example:
> 
> upstream cluster-servers  {
>            $server01;
>            $server02;
> }
> 

No, you can't.

Please also note:
http://nginx.org/en/docs/faq/variables_in_config.html

  wbr, Valentin V. Bartenev



More information about the nginx mailing list