location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ .php(.*)$ {
root C:/BtSoft/WebSoft/nginx/stop;
fastcgi_pass 127.0.0.1:4570; #php-cgi监听地址
fastcgi_index index.php; #默认页
fastcgi_split_path_info ^(.+.php)(.*)$; #分离路径
fastcgi_param PATH_INFO $fastcgi_path_info; #添加PATH_INFO信息
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
880元