Nginx无法将stream量传递给Flask应用程序和uwsgi
我想用Nginx部署一个Flask和uwsgi应用程序,一切正常,我可以让我的应用程序在我的域上工作: test.example.com:8080 : test.example.com:8080 。 问题是我不能使其在默认端口80下工作,当我尝试浏览test.example.com时,从Nginx中获得以下错误消息: 2016/09/02 10:21:29 [error] 2947#2947: *3 no live upstreams while connecting to upstream, client: 75.xxx.xxx.136, server: test.example.com, request: "GET /favicon.ico HTTP/1.1", upstream: "uwsgi://localhost", host: "test.example.com", referrer: "http://test.example.com/" 这是我的uwsgi命令: uwsgi –socket 8080 –chdir /var/www/test.example.com –protocol=http –module myapp:app 这是我的Nginxconfiguration: server { listen 80; root /var/www/test.example.com; server_name test.example.com; location / { include uwsgi_params; […]