Created
September 17, 2013 15:54
-
-
Save pansen/6596334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
charset utf-8; | |
server_name munin.inventorum.net; | |
location ~ ^/munin/munin-cgi-graph/ { | |
fastcgi_split_path_info ^(/munin/munin-cgi-graph)(.*); | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_pass unix:/var/run/munin/fastcgi-graph.sock; | |
include fastcgi_params; | |
} | |
location /munin/static/ { | |
alias /etc/munin/static/; | |
expires modified +1w; | |
} | |
location /munin/ { | |
fastcgi_split_path_info ^(/munin)(.*); | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_pass unix:/var/run/munin/fastcgi-html.sock; | |
include fastcgi_params; | |
} | |
location / { | |
rewrite ^/$ munin/ redirect; break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment