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