Upstream fail over?

Igor Sysoev is at
Mon Jul 27 12:47:45 MSD 2009

On Tue, Jun 23, 2009 at 10:48:41AM -0400, MortenP wrote:

> Is it possible to have nginx proxy to upstream_a and if that fails then default to upstream_b?
> What I would like to accomplish is to have a Varnish upstream, and if that's down, then nginx should just proxy to the application backend directly. 

   upstream ups {
       server  upstream_a;
       server  upstream_b backup;

However, probably you may omit Varnish and use nginx's proxy cache.

Igor Sysoev

More information about the nginx mailing list