Skip to content

Instantly share code, notes, and snippets.

@ww898
Last active July 5, 2018 15:25
Show Gist options
  • Save ww898/efc03d4700561c04527e0f573a6791aa to your computer and use it in GitHub Desktop.
Save ww898/efc03d4700561c04527e0f573a6791aa to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name _;
# location /nginx_status {
# stub_status on;
# access_log off;
# }
location ~ ^/(static|[^/]+/[^/]+/static)/(.+)$ {
alias /etc/munin/static/$2;
}
location ^~ /munin-cgi/munin-cgi-graph {
access_log off;
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-graph.sock;
include fastcgi_params;
}
location / {
access_log off;
fastcgi_split_path_info ^(/)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-html.sock;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment