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