简体   繁体   English

nginx在DigitalOcean上返回“错误的网关-502”

[英]nginx returns “Bad gateway - 502” on DigitalOcean

I am trying to configure nginx for a rails app on DigitalOcean. 我正在尝试为DigitalOcean上的Rails应用程序配置nginx。 When I open my IP, I see the BAD GATEWAY (502) message. 打开IP时,我看到BAD GATEWAY(502)消息。

In logs is 在日志中是

2014/06/03 09:58:57 [crit] 28612#0: *1 connect() to unix:/tmp/unicorn.myproject-staging.sock failed (2: No such file or directory) while connecting to upstream, client: 81.161.64.26, server: , request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/unicorn.myproject-staging.sock:/500.html", host: "my_ip"

What does error message means and how could I fix it? 错误消息是什么意思,我该如何解决?

Thank you 谢谢

EDIT: 编辑:

The application is deployed here: 该应用程序已部署在此处:

/home/deployer/apps/myproject-staging

请检查以确保您的Unicorn正在运行,并且unix套接字文件的路径正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM