问 题
奇怪的是今天早上起来。发现还是提示:Internal Server Error 但是错误日志一直不更新了,
还是显示昨天晚上的那些。
2017/08/29 01:39:12 [error] 1739#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 111.11.111.111, server: cccc, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8006", host: "wwwcc"
我的配配置: uwsgi.ini
# cccc_uwsgi.ini file
[uwsgi]
socket = 127.0.0.1:8006
chdir = /var/wwwroot/html/cccc
module = cccc.wsgi:application
env = DJANGO_SETTINGS_MODULE = cccc.settings
master = true
processes = 8
vacuum = true
nginx.conf
server {
listen 80;
server_name wwwcc;
charset UTF-8;
access_log /var/log/nginx/cccc_access.log;
error_log /var/log/nginx/cccc_error.log;
client_max_body_size 75M;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8006;
uwsgi_read_timeout 2;
}
location /static {
expires 30d;
autoindex on;
add_header Cache-Control private;
alias /var/wwwroot/html/cccc/static;
}
}
看这错误提示不知是哪里配置的不对?
另外错误日志不更新了是怎么回事?
解决方案
直接访问 127.0.0.1:8006 有响应吗?
扫一扫关注IT屋
微信公众号搜索 “ IT屋 ” ,选择关注与百万开发者在一起
更多推荐
python项目管理器 internal server error_python - django nginx uwsgi 提示: Internal Serv
发布评论