* 13上游过早关闭连接,同时从上游读取响应头

时间:2017-04-06 06:39:35

标签: django python-3.x nginx uwsgi

我正在配置第一次并收到此错误。 启用Nginx站点的配置如下:

#tream component nginx needs to connect to
 upstream django1 {
#server 127.0.0.1:8001; # for a web port socket (we'll use this first)
server unix:///run/uwsgi/app/apps/sokcet.B;
 }

# configuration of the server
server {

# the port your site will be served on
listen 9000;

# the domain name it will serve for
server_name xxx.xxx.xx.xxx; # substitute your machine's IP address or FQDN
charset     utf-8;

# max upload size
client_max_body_size 75M;   # adjust to taste

# Django media
#location /media  {
#    alias /path/to/your/mysite/media;  # your Django project's media files - amend as required
#}

#location /static {
#    alias /path/to/your/mysite/static; # your Django project's static files - amend as required
#}

# Finally, send all non-media requests to the Django server.
location / {
    uwsgi_pass  django1;
    include     /etc/nginx/uwsgi_params; # the uwsgi_params file you installed
    uwsgi_read_timeout 1800;
    uwsgi_send_timeout 600;
    proxy_read_timeout 600;
}
}

Uwsgi正在运行,但是nginx正在发出此错误。 请好好告诉我配置中的问题。

0 个答案:

没有答案