我用fastcgi在Nginx上运行django.
当我运行runfcgi时,我看到这些错误:
python manage.py runfcgi daemonize=false host=127.0.0.1 port=8000
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
2011/01/31 10:33:16 [error] 15921#0: *4 FastCGI sent in stderr: "WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!" while reading upstream,client: ::1,server: localhost,request: "GET / HTTP/1.1",upstream: "fastcgi://127.0.0.1:8000",host: "localhost"
2011/01/31 10:38:35 [error] 15921#0: *6 FastCGI sent in stderr: "WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!" while reading upstream,host:
“本地主机”
一切正常,但只是我不希望我的错误日志充斥着这些信号.我已经看到了关于apache的解决方案,其中涉及使用.htaccess(我认为它无论如何都不相关),但我找不到任何适用于Nginx的东西.
最佳答案
原文链接:https://www.f2er.com/nginx/435422.html