summaryrefslogtreecommitdiffstats
path: root/nginx-munin
diff options
context:
space:
mode:
Diffstat (limited to 'nginx-munin')
-rw-r--r--nginx-munin20
1 files changed, 12 insertions, 8 deletions
diff --git a/nginx-munin b/nginx-munin
index d0f5da9..07451b3 100644
--- a/nginx-munin
+++ b/nginx-munin
@@ -2,24 +2,28 @@ server {
listen 8080 default_server;
server_name munin;
- access_log /var/log/nginx/munin-access.log;
- error_log /var/log/nginx/munin-server.log;
+ access_log /proc/self/fd/1;
+ error_log /proc/self/fd/2;
- auth_basic "Munin Server";
- auth_basic_user_file "/etc/munin/htpasswd.users";
+ location /munin/static {
+ alias /etc/munin/static;
+ }
- location /munin {
- root /var/cache/munin/www;
+ 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 unix:/var/run/munin/fcgi-graph.sock;
+ fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
location / {
- root "/var/cache/munin/www";
+ rewrite ^/$ /munin/ redirect; break;
}
}