我使用uWSGI + Nginx部署Django应用程序。但是uWSGI不能收到Nginx的任何请求。
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x8e7250 pid: 20440 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 20440)
spawned uWSGI worker 1 (pid: 20445, cores: 1)
spawned uWSGI worker 2 (pid: 20446, cores: 1)
spawned uWSGI worker 3 (pid: 20447, cores: 1)
... no requests seen下面是我的配置文件:
uwsgi.ini
[uwsgi]
chdir = /home/laike9m/Envs/blog/My_Blog
module = my_blog.wsgi:application
home = /home/laike9m/Envs/blog/
master = true
processes = 3
socket = /tmp/uwsgi.sock
chmod-socket = 664
vacuum = truenginx.conf
server {
listen 80;
location /media {
alias /home/laike9m/media;
}
location /static {
alias /home/laike9m/static;
}
location / {
uwsgi_pass unix:/tmp/uwsgi.sock;
include uwsgi_params;
}
}如果您访问http://107.170.253.157/,它将给您502号错误。在Nginx的日志中:
"GET / HTTP/1.1" 502 545 "-"我做错了什么?谢谢!
发布于 2015-10-02 00:16:29
有几件事要尝试:
您还注意到,nginx日志似乎没有任何信息,但看起来像nginx访问日志,而不是错误日志。错误日志显示了什么不同的内容吗?
https://stackoverflow.com/questions/32888850
复制相似问题