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