> I'm working in a startup company and we need to deploy a new server
> because the traffic goes higher and higher.
> I already got uwsgi/nginx working on a server but on the new server I
> get this error when accessing ngin with the same configs:
>
> invalid HTTP protocol !!!
>
> Any idea why this error happen?
> The django dev server runs fine
>
> wsgi 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()
>
>
> Thanks in advance,
> Kyrill from switzerland


Hi, which webserver are you using ?

Be sure that it is passing the SERVER_PROTOCOL variable

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to