I am following this link to https://www.linode.com/docs/websites/nginx/deploy-django-applications-using-uwsgi-and-nginx-on-ubuntu-14-04 to host django application on nginx server. I followed all steps mention in link but it show error while browsing site :502 Bad gateway
.
I checked nginx error log file, it displays below error:
2017/03/04 07:09:21 [crit] 5131#0: *1 connect() to unix:/pathToMyProjectFolder/sample.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/pathToMyProjectFolder/sample.sock:", host: "localhost:8087"
And sample.sock file is not actually present in my project folder. I don't understand how this file will get created.