munin nginx how to run Dynamically zoomable graph

Hello.
How to run Dynamically zoomable graph on nginx?
Socket created in php-fpm unix:/tmp/munin.sock
Code:
server {
listen 1.1.2.2:80;
server_name test.my.dom;

location /munin/static/ {
alias /usr/local/www/munin/static/;
expires modified +1w;
}

location / {
root /usr/local/www/munin;
index index.html;
charset utf-8;
satisfy any;
auth_basic "closed site";
auth_basic_user_file /usr/.htpasswd;
deny all;
}

location ^~ /cgi-bin/munin-cgi-graph/ {
alias /usr/local/www/cgi-bin/munin-cgi-graph/;
access_log off;
fastcgi_split_path_info ^(/cgi-bin/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/tmp/munin.sock;
include fastcgi_params;
}
}
Снимок экрана_2023-09-13_16-43-16.png
 
Back
Top