原来是server模块的监听端口与xml模块监听端口不一样,改回来就行了。
server {
listen 80;
server_name 193.112.85.171;
access_log /home/ubuntu/android/taoke/logs/access.log;
error_log /home/ubuntu/android/taoke/logs/error.log;
#charset koi8-r;
#access_log logs/host.access.log main;
location / { #匹配taoke
include uwsgi_params; #导入一个nginx模块,uwsgi_params是用来与uWSGI通信的
uwsgi_pass 127.0.0.1:8076; #指定地址与端口
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#location /static/ {
# alias /home/ubuntu/www/mysite/src/collected_static/;
#}
#location /media/ {
# alias /home/ubuntu/www/mysite/src/uploads/;
#}
}
以上是项目server模块
原xml模块
<uwsgi>
<socket>:8075</socket>
<chdir>/home/ubuntu/android/taoke/src</chdir>
<module>taoke.wsgi</module>
<processes>4</processes>
<daemonize>/home/ubuntu/android/taoke/logs/uwsgi.log</daemonize>
</uwsgi>