nginx下thinkphp访问提示No input file specified
- 2017-08-19 11:57:53
- 开发
- 31
- shevechco
今天配置thinkphp环境忽然访问提示No input file specified
查找资料找到原因是因为在Fastcgi模式下,php不支持rewrite的目标网址的PATH_INFO的解析 ThinkPHP运行在URL_MODEL=2时,会出现 No input file specified.的情况,
解决办法:
fastcgi_params文件最下面添加
fastcgi_param PHP_ADMIN_VALUE "open_basedir=.:/tmp/:$document_root";
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.sulao.cn/post/417
相关推荐
- ubuntu22.04编译安装nginx
- flask使用nginx代理以后图片上传和加载问题解决方法
- nginx反向代理http/https、rpc/grpc、ws/wss
- nginx四层负载均衡配置解析以及卡顿问题的处理
- centos7部署k8s多master高可用集群(k8s+containerd+nginx+keepalived)
- k8s部署ingress-nginx
- docker部署keepalived非抢占单播模式
- docker-compose部署nginx反向代理tomcat
- docker-compose编排lnmp(nginx+php+mysql)环境
- docker和docker-compose分别部署nginx