Using variables on nginx

I can Use variables to define IP:Port on upstreams directive?

For example:

upstream cluster-servers {
$server01;
$server02;
}


Un abrazo!

Ral Hugo http://twitter.com/raulhugo

Miembro Asociadohttp://apesol.org.pe http://apesol.org.pe/SysAdmin
Cel.
#961-710-096 Linux Registered User #482081 - http://counter.li.org/
http://counter.li.org/P Antes de imprimir este e-mail piense bien si
es
necesario hacerlo

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

Ok thx, I test it and really doesnt work. :slight_smile:

2014-04-11 14:16 GMT-05:00 Valentin V. Bartenev [email protected]:

http://mailman.nginx.org/mailman/listinfo/nginx


Un abrazo!

Ral Hugo http://twitter.com/raulhugo

Miembro Asociadohttp://apesol.org.pe http://apesol.org.pe/SysAdmin
Cel.
#961-710-096 Linux Registered User #482081 - http://counter.li.org/
http://counter.li.org/P Antes de imprimir este e-mail piense bien si
es
necesario hacerlo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs