WSGI内部服务器错误

时间:2014-03-09 14:43:39

标签: django nginx wsgi

我读了this,如果我使用:

uwsgi --socket mysite.sock --module mysite.wsgi --chmod-socket=666
一切正常。然后我创建mysite_uwsgi.ini

# mysite_uwsgi.ini file
[uwsgi]

# Django-related settings
# the base directory (full path)
chdir           = /path/to/your/project
# Django's wsgi file
module          = project.wsgi
# the virtualenv (full path)
home            = /path/to/virtualenv

# process-related settings
# master
master          = true
# maximum number of worker processes
processes       = 10
# the socket (use the full path to be safe
socket          = /path/to/your/project/mysite.sock
# ... with appropriate permissions - may be needed
chmod-socket    = 666
# clear environment on exit
vacuum          = true

并尝试:

uwsgi --ini mysite_uwsgi.ini

没有nginx的错误消息,但在浏览器中 - 内部服务器错误

问题是什么?怎么解决?感谢。

0 个答案:

没有答案