2014-09-23 15:55:52 +00:00
|
|
|
# pass the PHP scripts to FastCGI server
|
|
|
|
#
|
|
|
|
# See conf.d/php-fpm.conf for socket configuration
|
|
|
|
#
|
|
|
|
index index.php index.html index.htm;
|
|
|
|
|
2017-05-06 06:50:19 +00:00
|
|
|
location ~ \.(php|phar)(/.*)?$ {
|
|
|
|
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
|
|
|
|
|
2014-09-23 15:55:52 +00:00
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2017-05-06 06:50:19 +00:00
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2014-09-23 15:55:52 +00:00
|
|
|
fastcgi_pass php-fpm;
|
|
|
|
}
|