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