Welcome! Log In Create A New Profile


Condition in upstream

September 12, 2012 04:31PM
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
Subject Author Posted

Condition in upstream

thigomes September 12, 2012 04:31PM

Re: Condition in upstream

thigomes September 12, 2012 05:04PM

Re: Condition in upstream

Igor Sysoev September 13, 2012 03:32AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready