版权声明:如本站内容侵犯您的作品,您说我删,敬请谅解! @呆萌demonsleep 设为首页 加入收藏

TOP

iis指定的 CGI 应用程序由于未返回完整的一组 HTTP 头而产生错误行为
2017-03-16 00:37:21 来源:网络 作者:demonsleep 【 】 浏览:9467次 评论:0

HTTP 错误 502.2 - Bad Gateway指定的 CGI 应用程序由于未返回完整的一组 HTTP 头而产生错误行为。它实际返回的头是“Security Alert! The PHP CGI cannot be accessed directly.< p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

< p>For more information as to why this behaviour exists, see the http://php.net/security.cgi-bin">manual page for CGI security.

< p>For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit < a href="
http://php.net/install.windows">the manual page.

”。


iis7 iis8.5 出现以上问题,直接做如下操作

核实 php.ini 中的这几项

cgi.force_redirect=0
fastcgi.impersonate=1
fastcgi.logging=0




图片/文字来源网络,请勿用作商业用途,如侵权请告知


38


Tags:iis指定的 CGI 应用程序由于未返回完整的一组 HTTP 头而产生错误行为,IT技术工具教程,90时代 责任编辑:admin
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇没有了 下一篇CSS3 2D Transform

相关栏目

最新文章

图片主题

热门文章

推荐文章

相关文章