nginx 开启 PATH_INFO
在 fastcgi-php.conf 中去掉 注释的 fastcgi_param PATH_INFO $path_info;
在ci框架中 nginx的配置
需要在 .php(.*)$
server {
listen 80;
server_name player.xx.com;
root /www/player.xxx.com/player;
index index.php index.html index.htm;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php(.*)$ {
fastcgi_pass php:9000;
include fastcgi-php.conf;
include fastcgi_params;
}
}
来源:oschina
链接:https://my.oschina.net/hongjiang/blog/4317939