First, I'm new to this subject. So I'm trying to serve a hello world flask app with nginx and gunicorn on a Centos7 server. But I'm getting 502 error on website. When I checked nginx's error.log file I see this:
*32 connect() to unix:/home/saba/myproject/myproject.sock failed (2: No such file or directory) while connecting to upstream, client: 88.238.245.17, server: 37.148.208.160, request: "GET / HTTP/1.1", upstream: "http://unix:/home/saba/myproject/myproject.sock:/", host: "37.148.208.160"
Where can I find this sock file? Or how shuold it be generated? As far as I guess there is none in my project.