502 Bad Gateway error with nginx and unicorn
我在centos上设置了nginx 1.4.1和独角兽-我收到502错误网关错误,我的nginx日志显示如下:
1 2 3 | 1 connect() to unix:/tmp/unicorn.pantry.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.192, server: , request:"GET / HTTP/1.1", upstream:"http://unix:/tmp/unicorn.pantry.sock:/", host:"192.168.1.30" |
没有/tmp/unicorn.pantry.sock文件或目录。我认为这可能是权限错误,因此如果谁需要什么权限则无法写入文件-我还读到可以创建tcp客户端
我也不知道192.168.1.192的来源
我只想使其正常工作,该怎么办?
好吧,我知道了。我的共享目录中有unicorn.sock,所以我需要指向unix: