配置nginx使之支持pathinfo

server {
listen 80;
server_name 101.200.156.147;

rewrite_log on;

root /alidata/www/game;
index index.php index.html index.htm;

location / {
index index.php index.html index.htm;
}

location ~ .php(|/) {  
   fastcgi_pass 127.0.0.1:9000;  
   fastcgi_index index.php;  
   fastcgi_split_path_info ^(.+.php)(.*)
;
fastcgi_param PATH_INFO fastcgipathinfo;fastcgiparamSCRIPTFILENAME document_root$fastcgi_script_name;
include fastcgi_params;
}
}

你可能感兴趣的:(nginx)