>>Your backend / application isn't working that's why nginx can't connect to it and has to return 502. The app is up and running on port 8080. I can access the app directly using mysite.com:8080. Do I have to configure something else, maybe the firewall? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212680,212719#msg-212719