The CGI application specified by PHP produces incorrect behavior because it does not return a complete set of HTTP headers.

Source: Internet
Author: User

The CGI application specified by PHP produces incorrect behavior because it does not return a complete set of HTTP headers.

Security alert! PHP CGI cannot be accessed directly.
This PHP CGI binary is compiled with force-cgi-redirect enabled. This means. A page would only be served up if the Redirect_status CGI variable is set. This variable are set, for example, by Apache ' s Action Directive redirect.
Disable this restriction by recompiling the PHP binary with the--disable-force-cgi-redirect switch. Your PHP CGI binary accessible somewhere in your web tree, people would be the able to circumvent. htaccess security by loading files through the PHP parser. A Good The around this is to define Doc_root in your php.ini file to something other than your top-level document_root. This is the separate the part of your web space which uses PHP from the normal part using. htaccess security. htaccess restrictions anywhere on your site can leave doc_root undefined. If you were running IIS, you could safely set cgi.force_redirect=0 in php.ini.

Method: Php.info force_redirect=0 This sentence put in php.ini.

The CGI application specified by PHP produces incorrect behavior because it does not return a complete set of HTTP headers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.