Welcome! Log In Create A New Profile

Advanced

Re: subrequest failover

Maxim Dounin
July 30, 2010 04:04PM
Hello!

On Wed, Jul 28, 2010 at 05:36:11PM -0700, James Lyons wrote:

> I am trying to use nginx as reverse proxy to perform failover from 1
> critical service to another.
>
> When processing a request, it sends a request (http GET) to a backend
> (custom http server) using SubRequest methods. If it is for some
> reason down, and there is no response, i'd like it to fail over to a
> second server. Is there a way to do this in conf settings or do I
> have to make code modifications to accomplish this?

Subrequests in nginx aren't really different from ordinary
requests, they are handled in the same way - with location
matching and so on. Setting failover correctly in config (either
with proxy_next_upstream or via error_page) would do the trick for
both normal requests and subrequests.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

subrequest failover

James Lyons July 28, 2010 08:42PM

Re: subrequest failover

Denis F. Latypoff July 28, 2010 09:46PM

Re: subrequest failover

James Lyons September 14, 2010 09:08PM

Re: subrequest failover

Maxim Dounin September 14, 2010 09:24PM

Re: subrequest failover

James Lyons September 14, 2010 10:00PM

Re: subrequest failover

Maxim Dounin September 14, 2010 10:28PM

Re: subrequest failover

reaper September 16, 2010 05:29AM

Re: subrequest failover

Maxim Dounin September 16, 2010 09:46AM

Re: subrequest failover

Maxim Dounin July 30, 2010 04:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready