On Thursday 16 March 2017 05:25:32 valerio orfano wrote:
> Here my configurations files.
>
> [uwsgi]
> chdir = /home/elastic/workspace/ES_Brevetti
> wsgi-file = ES_Brevetti/wsgi.py
> master = true
> processes = 5
> uid = nginx
> gid = nginx
> socket = unix:///socket/uwsgi.sock
Where did you read the unix prototol is a network protocol that requires two slashes to indicate it is? And then add another to reference the root of the network domain?
> uwsgi_pass unix:///socket/uwsgi.sock;
See above.
--
Melvyn Sopacua
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f2255468-2f43-4b5c-92d7-7b6ceaf9338d%40googlegroups.com.
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
Thanx you very much, i've spent days on this issue
I'm sorry to hear that, especially because when I was using uwsgi I was also spending days for various issues. All this pain went away when I started to use Gunicorn. You can read more about that in https://djangodeployment.com/2017/01/02/which-wsgi-server-should-i-use/.
Regards,
A.
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6cfe3f2-ca74-44b3-830a-25c5f3c8afc3%40googlegroups.com.