>>curl -I http://localhost:8080 and see if you can connect. > I did this on the server and I got: > curl -I http://localhost:8080 > curl: (7) couldn't connect to host Your backend / application isn't working that's why nginx can't connect to it and has to return 502. rr