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