Condition in upstream

thigomes nginx-forum at
Wed Sep 12 20:31:48 UTC 2012

Hi guys,

I'm studying about in the use of upstream in the nginx. And I have a
question about the condition of use it.

Now, I have the following environment in production:
Internet -- > Nginx --> Varnish --> Apache

I would like of set in upstream a backup's server, for example:
upstream backend  {
       server; # varnish server
       server backup; # apache server

But in the case the configuration of the "location /" will change according
with the server.

Is there some parameter of condition that I can used?

Best regards,
Thiago Gomes

Posted at Nginx Forum:,230678,230678#msg-230678

More information about the nginx mailing list