Need Help about useing Nginx with UWSGI
Maxim Dounin
mdounin at mdounin.ru
Fri Oct 23 12:46:53 UTC 2015
Hello!
On Fri, Oct 23, 2015 at 02:59:26PM +0800, qhlonline wrote:
> I had some problem on config nginx with uwsgi. Finally I found
> that my uwsgi had chose protocol of http and Nginx use uwsgi
> protocol as default. So If I want to use http protocol to
> transport data from nginx to uwsgi, how to config ?
To use HTTP instead of uWSGI protocol, you have to use the proxy
module (proxy_pass) instead of the uwsgi module (uwsgi_pass).
Both modules are very similar, so shouldn't have problems changing
your config from one to another.
See here for details:
http://nginx.org/en/docs/http/ngx_http_proxy_module.html
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list