> Below is the command that I run.
>
> sudo /usr/local/bin/uwsgi --loop gevent --http-socket 127.0.0.1:8071
> --wsgi-file /home/ubuntu/workspace/uwsgiServer.py --master --async 5
> --enable-threads --listen 100 --uid root -b 32768
>
> If I go to 127.0.0.1:8071/mypath all works as expected.
>
> I got to 127.0.0.1/u/mypath I get 502 error.
>
> Here are the relevant portions of the  nginx config
>
>  upstream uwsgi_p {
>         server 127.0.0.1:8071;
>       }
>
> location /u/ {
>                        include uwsgi_params;
>                        uwsgi_param X-Real-IP $remote_addr;
>                        uwsgi_param Host $http_host;
>                        uwsgi_pass uwsgi_p;
>                  }
>
>

You have set nginx to speak the uwsgi protocol, while you have configured
uWSGI to speak http.

Change --http-socket with --socket

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

Reply via email to