Configure specific upstream node to spit 30x error

TECK nginx-forum at nginx.us
Wed Aug 15 18:52:09 UTC 2012


Hi all,

I was wondering if there is feasible way to have a node spit a specific 30x
error (i.e. 307) if it becomes unreachable, instead of passing to next
upstream node?

upstream mycluster {
server 192.168.1.2;
server 192.168.1.3;
server 192.168.1.4;
}

If node 192.168.1.3 is down, it should return a 307, instead of passing to
192.168.1.4.

Thank you for your help.

Regards,

Floren

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229731,229731#msg-229731



More information about the nginx mailing list