Skip to content

Instantly share code, notes, and snippets.

@informationsea
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save informationsea/2ee950dfc01d1658c7c4 to your computer and use it in GitHub Desktop.
Save informationsea/2ee950dfc01d1658c7c4 to your computer and use it in GitHub Desktop.
;;configuration for supervisor
[program:munin-graph]
command=spawn-fcgi -u munin -g munin -U nginx -s /var/run/munin/fcgi-graph.sock -S -M 0600 -n -- /var/www/cgi-bin/munin-cgi-graph
;;configuration for supervisor
[program:munin-html]
command=spawn-fcgi -u munin -g munin -U nginx -s /var/run/munin/fcgi-html.sock -S -M 0600 -n -- /var/www/cgi-bin/munin-cgi-html
# partial configuration for Nginx
location /**/munin2/static/ {
alias /var/www/html/munin/static/;
}
location /**/munin2 {
fastcgi_split_path_info ^(/private/munin2)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-html.sock;
include fastcgi_params;
auth_basic "closed site";
auth_basic_user_file htpasswd;
}
location ^~ /**/munin-cgi/munin-cgi-graph/ {
access_log off;
fastcgi_split_path_info ^(/private/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-graph.sock;
include fastcgi_params;
auth_basic "closed site";
auth_basic_user_file htpasswd;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment