django/uwsgi/nginx invalid HTTP protocol !!!

Posted by user66208 on Server Fault See other posts from Server Fault or by user66208
Published on 2011-01-09T22:25:44Z Indexed on 2011/01/09 22:55 UTC
Read the original article Hit count: 381

Filed under:
|
|

Any idea why this error happen when accessing nginx?

uwsgi is running with the command:

/usr/sbin/uwsgi --socket /home/user/run/project.sock --chmod-socket --pidfile /home/user/project/uwsgi.pid --module project.wsgi_app --pythonpath /home/user/ -p 4

/home/user/project/wsgi_app.py:

import sys import os

sys.path.append(os.path.abspath(os.path.dirname(file))) sys.path.append('/home/user/project') os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()

Any help is appreciated.

© Server Fault or respective owner

Related posts about nginx

Related posts about django