免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5298 | 回复: 0
打印 上一主题 下一主题

php + nginx [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-05-27 17:09 |只看该作者 |倒序浏览
我的nginx正常,php 也正常。访问nginx也正常。现在就是在访问PHP时出现:2017/05/27 16:42:38 [notice] 10300#0: signal process started
2017/05/27 16:42:47 [error] 10304#0: *321 FastCGI sent in stderr: "Access to the script '/usr/local/nginx/htdocs' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 100.100.101.35, server: scott.qq.com, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "172.29.9.60:8001"


我把php 的:cgi.fix_pathinfo=1,security.limit_extensions = .php .php3 .php4 .php5 .html .js .css .jpg .jpeg .gif .png .htm,且重启了。
nginx的,fastcgi_param  SCRIPT_FILENAME  $document_root/$fastcgi_script_name;
                 fastcgi_param  PHP_VALUE  open_basedir=$document_root:/tmp/;
                 fastcgi_param   PATH_TRANSLATED     $document_root$fastcgi_path_info;
始终出现此错误。请高手帮忙。谢谢了。先。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP