Hi
I'm trying to host a couple of sites (some django, some node.js, some static) on a Linode using nginx.
To config the django site, I used this guide
https://library.linode.com/web-servers/nginx/python-uwsgi/ubuntu-12.04-precise-pangolin. The default sites (static page) is available, while site configured following the guide give me an error 502.
In log I have this error:
Code:
2014/06/12 00:17:17 [crit] 10261#0: *1 connect() to unix:///run/uwsgi/app/alessandroamoroso.com/alessandroamoroso.socket failed (2: No such file or directory) while connecting to upstream, client: 79.56.27.44, server: alessandroamoroso.com, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///run/uwsgi/app/alessandroamoroso.com/alessandroamoroso.socket:", host: "<ip>:8080"
This is the configuration in /etc/nginx/sites-available:
Code:
server {
listen 8080 default_server;
listen [::]:8080 default_server ipv6only=on;
# Make site accessible from http://localhost/
#server_name localhost;
server_name alessandroamoroso.com www.alessandroamoroso.com;
access_log /srv/www/alessandroamoroso.com/logs/access.log;
error_log /srv/www/alessandroamoroso.com/logs/error.log;
location / {
#uwsgi_pass 127.0.0.1:8001;
uwsgi_pass unix:///run/uwsgi/app/alessandroamoroso.com/alessandroamoroso.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
}
location /static {
root /srv/www/alessandroamoroso.com/public_html/static/;
index index.html index.htm;
}
}
Has anyone had a similar problem? Does anybody know tell me some other guide to follow?
Thanks