Trying to get a graphite graphing system setup on nginx. I've seen some tutorials on setting up in Apache, but haven't found any for nginx. I've got my config setup as below, however, whenever I attempt to go to the path I get a 502 Bad Gateway and error log gives me an error of
(104: Connection reset by peer) while reading response header from upstream. upstream: "uwsagi://127.0.0.1:9000"
server {
listen 80;
server_name graphite.example.com;
access_log /var/www/graphite.example.com/logs/access.log;
error_log /var/www/graphite.example.com/logs/error.log;
root /var/www/graphite.example.com;
location / {
}
location /graphite {
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /content {
alias /opt/graphite/webapp/graphite/content;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /dashboard {
alias /opt/graphite/webapp/graphite/dashboard;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /metrics {
alias /opt/graphite/webapp/graphite/metrics;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /render {
alias /opt/graphite/webapp/graphite/render;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /browser {
alias /opt/graphite/webapp/graphite/browser;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
}
location /composer {
alias /opt/graphite/webapp/graphite/composer;
gzip off;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9000;
} }