sorry. typo. proxy_pass to upstream2 if proxy_pass to upstream1 fails? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,209883,209884#msg-209884