django/uwsgi/nginx invalid HTTP protocol !!!
- by user66208
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.