nginx - unicorn - django 502坏网关。与project.sock的连接失败

问题描述 投票:0回答:1

我刚刚在Digital Ocean上部署了我的django应用程序,并且我一直收到502错误。

我已经仔细检查了所有的conf文件,我的nginx错误日志显示:

connect() to unix:/root/path/project_name.sock failed (13: Permission denied) while connecting to ups$

我认为这可能是一个权限问题,如果还没有/创建了project_name.sock文件,我怎么能更改它?

有任何想法吗?

python django nginx gunicorn
1个回答
0
投票

端口80用于通过浏览器监听传入流量,这就是为什么键入:

ufw allow 80 

然后重新加载nginx和gunicorn ..之后应该运行良好。

© www.soinside.com 2019 - 2024. All rights reserved.