munin 647 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 8080 default_server;
  3. server_name munin;
  4. access_log /proc/self/fd/1;
  5. error_log /proc/self/fd/2;
  6. location /munin/static {
  7. alias /etc/munin/static;
  8. }
  9. location ^~ /munin/ {
  10. fastcgi_split_path_info ^(/munin)(.*);
  11. fastcgi_param PATH_INFO $fastcgi_path_info;
  12. fastcgi_pass 127.0.0.1:9001;
  13. include fastcgi_params;
  14. }
  15. location ^~ /munin-cgi/munin-cgi-graph/ {
  16. fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
  17. fastcgi_param PATH_INFO $fastcgi_path_info;
  18. fastcgi_pass 127.0.0.1:9000;
  19. include fastcgi_params;
  20. }
  21. location / {
  22. rewrite ^/$ munin/ redirect; break;
  23. }
  24. }