Ok, I'm running an app locally as homestead.app:8000. I am running Vagrant and this only started happening after I did "vagrant halt" to change the document root for Nginx and then vagrant up.
Nginx is returning 502 Bad Gateway to the browser and the error log for my test domain states the following:
2014/05/18 21:37:11 [crit] 1368#0: *7 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 10.0.2.2, server: homestead.app, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "homestead.app:8000"
/var/run/php5-fpm.sock
? – Tan Hong Tat