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