LNMP 配置NGINX 支持THINKPHP PATHINFO模式


LNMP 配置NGINX 支持THINKPHP PATHINFO模式

tp3.2.3在php5.6中配置伪静态无效

http://www.thinkphp.cn/topic/29706.html

1,修改PHP.INI 支持 PHPINOF

PHP配置文件:/usr/local/php/etc/php.ini

更改php.ini
找到:cgi.fix_pathinfo=0
更改为:cgi.fix_pathinfo=1

2.修改nginx对应配置文件

/usr/local/nginx/conf/vhost/你的域名配置文件

去掉include pathinfo的#,在try_files前加#;

3.重启lnmp即可。

lnmp restart


猜你喜欢

转载自blog.csdn.net/cqyyh/article/details/79960872