auth_http script and other setttings are done correctly, this is what i am getting in error.log upstream timed out (111: Connection timed out) while connecting to upstream it's saying +OK for user <username> in connect but after entering pass <password> it's giving above error. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,180902,194908#msg-194908