server { listen 80 default_server; access_log /var/log/nginx/stat.access.log; error_log /var/log/nginx/stat.error.log warn; server_name localhost stat.sample.com; index index.html index.php; root /var/cache/munin/www; set $fpmpool default; include custom.d/restricted.conf; include custom.d/fpm-status.conf; location /nginx_status { stub_status on; access_log off; } location ~* \.php$ { include fastcgi_params; fastcgi_pass $fpmpool; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }