Forum: NGINX Using variables on nginx.

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*
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.