essence of the other tow ansers: http://dgtool.blogspot.de/2013/02/nginx-as-sticky-balancer-for-ha-using.html you might want to google "nginx sticky sessions" Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241556,241627#msg-241627