Created
July 17, 2015 19:09
-
-
Save brianmcdo/241ba60adfde766b0f48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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