本来就是支持燃隐的啊,你只需要调用 一下入口rewrite就OK,比如
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ 宽凯 /index.php/$1 last;
break;
}
}
location ~ \.php {
fastcgi_pass 慎段唤127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}