Nginx, django, gunicorn, ubuntu 14.04 (13: permiso denegado) mientras se conecta a upstream
Estoy trabajando en midjango
proyecto connginx
ygunicorn
, como se dice aquí:
Mi sitio funciona localmente, pero cuando comienzonginx
ygunicorn
servidor que tuve
502 Error de puerta de enlace incorrecta.
OS esUBUNTU 14.04
Estoy tratando de hacer que mi proyecto funcione y reinstalar todo como root (sé que es malo), el mismo error.
Aquí está mi "error.log":
20/04/2016 20:15:10 [crítico] 10119 # 0: * 1 conectar () a
unix: /root/myproject/myproject.sock falló (13: Permiso denegado) mientras se conectaba a la parte superior, cliente: 46.164.23
Cuando corro comand "nginx
":
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
My gunicorn.conf
description "Gunicorn application server handling myproject" start on runlevel [2345] stop on runlevel [!2345] respawn setuid root setgid www-data chdir /root/myproject exec myprojectenv/bin/gunicorn --workers 3 --bind unix:/root/myproject/myproject.sock myproject.wsgi:application
Esa es mi "/ etc / nginx / sites-available / myproject"
server {
listen 80;
server_name www.mysite.ru;
error_log /nginx_error.log;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /root/myproject;
}
location / {
include proxy_params;
proxy_pass http://unix:/root/myproject/myproject.sock;
}
}
Apreciaré mucho tu ayuda !!!