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