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