4f306b1
server {
4f306b1
    # Example configuration! Change this to suit your needs.
4f306b1
    # Access munin at http://localhost/munin/
4f306b1
    # NOTE - Do not remove this file, otherwise munin package upgrade
4f306b1
    # recreates this.
4f306b1
4f306b1
    listen       80;
4f306b1
    server_name  localhost;
4f306b1
4f306b1
    location / {
4f306b1
        root   /usr/share/nginx/html;
4f306b1
        index  index.html index.htm;
4f306b1
    }
4f306b1
4f306b1
    # redirect server error pages to the static page /40x.html
4f306b1
    #
4f306b1
    error_page  404              /404.html;
4f306b1
    location = /40x.html {
4f306b1
        root   /usr/share/nginx/html;
4f306b1
    }
4f306b1
4f306b1
    # redirect server error pages to the static page /50x.html
4f306b1
    #
4f306b1
    error_page   500 502 503 504  /50x.html;
4f306b1
    location = /50x.html {
4f306b1
        root   /usr/share/nginx/html;
4f306b1
    }
4f306b1
4f306b1
    location ^~ /munin-cgi/munin-cgi-graph/ {
4f306b1
        access_log off;
4f306b1
        fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
4f306b1
        fastcgi_param PATH_INFO $fastcgi_path_info;
4f306b1
        fastcgi_pass unix:/var/run/munin/fcgi-graph.sock;
4f306b1
        include fastcgi_params;
4f306b1
    }
4f306b1
4f306b1
    location /munin/static/ {
4f306b1
        alias /etc/munin/static/;
4f306b1
    }
4f306b1
4f306b1
    location /munin/ {
4f306b1
        fastcgi_split_path_info ^(/munin)(.*);
4f306b1
        fastcgi_param PATH_INFO $fastcgi_path_info;
4f306b1
        fastcgi_pass unix:/var/run/munin/fcgi-html.sock;
4f306b1
        include fastcgi_params;
4f306b1
    }
4f306b1
4f306b1
}
4f306b1