location / {
index index.php index.html index.htm;
if (!-e $request_filename){
rewrite ^/(.*)
/index.php last;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffer_size 500k;
fastcgi_buffers 4 1000k;
fastcgi_busy_buffers_size 1000k;
#fastcgi_pass php_backend; #unix:/var/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
#fastcgi_split_path_info ^(.+\.php)(.*)$; #增加
#fastcgi_param PATH_INFO $fastcgi_path_info; #增加
}
版权属于:
Ezra
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)