5 Answers
已解决。php没有识别出pathinfo导致的No input file specified错误和后台登录出现Access denied.
OneinStack的php.ini在:/usr/local/php/etc/php.ini
添加 cgi.fix_pathinfo = 1
到/usr/local/php/etc/php.ini内
然后在/usr/local/nginx/conf/vhost/you-domain.conf内的
location ~ [^/]\.php(/|$) {
下 添加一行
fastcgi_split_path_info ^(.+?.php)(/.*)$;
保存后,重启php和nginx即可解决。
OneinStack的php.ini在:/usr/local/php/etc/php.ini
添加 cgi.fix_pathinfo = 1
到/usr/local/php/etc/php.ini内
然后在/usr/local/nginx/conf/vhost/you-domain.conf内的
location ~ [^/]\.php(/|$) {
下 添加一行
fastcgi_split_path_info ^(.+?.php)(/.*)$;
保存后,重启php和nginx即可解决。
Please login or Register to submit your answer