Skip to content

Instantly share code, notes, and snippets.

@brianmcdo
Created July 17, 2015 19:09
Show Gist options
  • Save brianmcdo/241ba60adfde766b0f48 to your computer and use it in GitHub Desktop.
Save brianmcdo/241ba60adfde766b0f48 to your computer and use it in GitHub Desktop.
server {
listen 80; ## listen for ipv4; this line is default and implied
server_name munin.example.com;
location / {
alias /var/cache/munin/www/;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-munin-graph.sock;
include fastcgi_params;
}
location ^~ /munin-cgi/munin-cgi-html/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-html)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-munin-html.sock;
include fastcgi_params;
}
location /munin/static/ {
alias /etc/munin/static/;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment