Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ --module project.wsgi_app --pythonpath /home/user/ -p 4


import sys
import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'

import django.core.handlers.wsgi

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

Any help is appreciated.

share|improve this question

uwsgi uses its own protocl. you can put nginx in front of it to serve it, or just as a test you can add the parameters "--http-only --http :8080" to get a http server running to view your site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.