返回信息流[uwsgi]
socket = 127.0.0.1:8001
chdir = /var/www/butterfly
wsgi-file = run.py
callable = app
processes = 4
workers = 2
stats = 127.0.0.1:9191
nginx
server {
listen 80;
server_name localhost;
client_max_body_size 4G;
access_log logs/caiyin.log main;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8001;
uwsgi_param UWSGI_PYTHON /var/www/butterfly;
uwsgi_param UWSGI_CHDIR /var/www/butterfly;
uwsgi_param UWSGI_SCRIPT run:app;
}
}
upstream prematurely closed connection while reading response header from upstream, client: 114.255.40.56, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8001", host: "182.92.242.249"
这是一条镜像帖。来源:北邮人论坛 / python / #7998同步于 2015/8/3
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖
谁配置过uwsgi+nginx+python,我已经崩了,总是502错误
cm2b
2015/8/3镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
uwsgi+Nginx+Django官方配置文档,亲测有效,如果配置不成功请按步骤仔细检查。。http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html?highlight=django