Welcome! Log In Create A New Profile

Advanced

Use next Balanced member if 503 error

December 06, 2012 12:34PM
Hello I am working with nginx as balancer between two jetty servers.

The balancing is working but I am facing a problem when a 503 error is generated by one of the servers, I added the line

proxy_next_upstream error timeout invalid_header http_500 http_503;

It seems not to work when one of the servers fail because a resource is lost like a DB connection. I can see the 503 error page instead of the correct page in the other balanced member.

I have checked that the other server do have a valid DB connection but nginx fails to forward to it.

Thanks for your help.
Subject Author Posted

Use next Balanced member if 503 error

marcosluna79 December 06, 2012 12:34PM

Re: Use next Balanced member if 503 error

Maxim Dounin December 07, 2012 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready