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.