server { listen 80; access_log /var/log/nginx/stat.access.log; error_log /var/log/nginx/stat.error.log warn; server_name stat.localhost zbx.localhost; index index.html index.php; 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; } }