Welcome! Log In Create A New Profile

Advanced

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 {
ip_hash;
server 192.168.1.5:6081; # varnish server
server 192.168.1.7:80 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