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;
}
So, how is it possible that I would get a 502 error?
My app is bottle.py
if __name__ == "__main__":
# Interactive mode
run(host='localhost', port=8049)
else:
# Mod WSGI launch
os.chdir(os.path.dirname(__file__))
application = default_app()
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi