subrequest failover

Denis F. Latypoff latypoff at
Thu Jul 29 05:40:36 MSD 2010

29.07.2010, 04:36, "James Lyons" <james.lyons at>:
> 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?
> Any help appreciated.

upstream failover {
    server backup;

server {
    location / {
        proxy_pass http://failover;
br, Denis F. Latypoff.

More information about the nginx mailing list