1.修改虚拟主机配置文件 /usr/local/nginx/conf/vhost/***.conf
include enable-php-pathinfo.conf;
2.修改php.ini /usr/local/php/etc/php.ini
cgi.fix_pathinfo=0 => cgi.fix_pathinfo=1
3.重启lnmp
lnmp restart
1.修改虚拟主机配置文件 /usr/local/nginx/conf/vhost/***.conf
include enable-php-pathinfo.conf;
2.修改php.ini /usr/local/php/etc/php.ini
cgi.fix_pathinfo=0 => cgi.fix_pathinfo=1
3.重启lnmp
lnmp restart