server
{
listen 80;
server_name xxx;
....if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last; }
location ~ \.php {
set $real_script_name $fastcgi_script_name;
set $path_info "";
include fastcgi_params;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2; }
... fastcgi_param PATH_INFO $path_info; fastcgi_param SCRIPT_NAME $real_script_name;
}
}