location ~ \.php$ { fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /data/www/yixue.vfocus.cn/$fastcgi_script_name;
#include fastcgi_params;
##########################################pathinfo 模式
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\\.php)(/.+)$"){
set $real_script_name $1;
set $path_info $2;
}
#include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /data/www/yixue.vfocus.cn/$real_script_name;
#fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
include fastcgi_params;
##########################################nginx支持pathinfo 模式的重点
}