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