343cbc
# pass the PHP scripts to FastCGI server
343cbc
#
343cbc
# See conf.d/php-fpm.conf for socket configuration
343cbc
#
343cbc
index index.php index.html index.htm;
343cbc
343cbc
location ~ \.(php|phar)(/.*)?$ {
343cbc
    fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
343cbc
343cbc
    fastcgi_intercept_errors on;
343cbc
    fastcgi_index  index.php;
343cbc
    include        fastcgi_params;
343cbc
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
343cbc
    fastcgi_param  PATH_INFO $fastcgi_path_info;
343cbc
    fastcgi_pass   php-fpm;
343cbc
}