summaryrefslogtreecommitdiffstats
path: root/files/etc/nginx/sites-enabled/munin
blob: 4dc9764f295d7f0cc5533a5a36c26c0a3a116f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
server {
  listen 8080 default_server;
  server_name munin;

  access_log /proc/self/fd/1;
  error_log /proc/self/fd/2;

  location /munin/static {
    alias /etc/munin/static;
  }

  location ^~ /munin/ {
    fastcgi_split_path_info ^(/munin)(.*);
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_pass 127.0.0.1:9001;
    include fastcgi_params;
  }

  location ^~ /munin-cgi/munin-cgi-graph/ {
    fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_pass 127.0.0.1:9000;
    include fastcgi_params;
  }

  location / {
      rewrite ^/$ munin/ redirect; break;
  }
}