set $PHP_ENV 1; location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/run/php/php{$PHP_VERSION}-fpm.sock; fastcgi_index index.php; include fastcgi.conf; include {$SERVER_PATH}/web_conf/php/pathinfo.conf; }