Thursday, March 16, 2017

Re: Django and Nginx through uwsgi is not working

On Thursday 16 March 2017 11:04:53 valerio orfano wrote:

> http://uwsgi-docs.readthedocs.io/en/latest/Nginx.htm

*sigh*

 

http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html#uwsgi_pass

 

unix:/path/to

 

Maybe unix:/// works, maybe it doesn't. But file:/// is supposed to be the exception to the URI rules, not the rule itself.

 

Also, just providing a plain path (socket = /var/run/uwsgi/myapp.sock) in uwsgi.ini works.

 

Of course, it will try to create the socket under the user uwsgi runs as, so permissions for the directory need to allow that.

--

Melvyn Sopacua

No comments:

Post a Comment