Try it with IP addresses instead of names. and you are looping back into nginx with your upstream, try a real backend. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252520,252541#msg-252541