Hi
I installed uswgi via pip, set up a wsgi.py like so
def application(env, start, response):
start_response('200 OK', [('Content-Type', 'text/html')])
return ['Hello!']
and setup nginx.conf with:
http{
...
upstream uwsgicluster {
server 127.0.0.1:8001;
}
server {
listen 80;
location /oauth {
include uwsgi_params;
uwsgi_pass uwsgicluster;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_fo$
proxy_set_header X-Forwarded-Host $server_name;
}
}
...
}
when i go to <ip address>/oauth I get the default 'Welcome to nginx!' page
not my Hello uwsgi served one. What is the correct config for a reverse
proxy and where do I setup a log for uwsgi so I see if it's being hit?
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi