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