Forum: NGINX Using variables on nginx.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D207dfc04524519f516e3f32df986d2e?d=identicon&s=25 Raul Hugo (Guest)
on 2014-04-11 20:59
(Received via mailing list)
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*
40b4c848b8fcd63b0cb60b9d170c3a77?d=identicon&s=25 Valentin V. Bartenev (Guest)
on 2014-04-11 21:17
(Received via mailing list)
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
D207dfc04524519f516e3f32df986d2e?d=identicon&s=25 Raul Hugo (Guest)
on 2014-04-11 21:20
(Received via mailing list)
Ok thx, I test it and really doesnt work. :)


2014-04-11 14:16 GMT-05:00 Valentin V. Bartenev <vbart@nginx.com>:

>
> 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 topic is locked and can not be replied to.