⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 security.cgi-bin.force-redirect.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Case 2: using --enable-force-cgi-redirect</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="security.cgi-bin.default.html">Case 1: only public files served</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.cgi-bin.doc-root.html">Case 3: setting doc_root or user_dir</a></div> <div class="up"><a href="security.cgi-bin.html">Installed as CGI binary</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="security.cgi-bin.force-redirect" class="sect1">    <h2 class="title">Case 2: using --enable-force-cgi-redirect</h2>    <p class="simpara">     This compile-time option prevents anyone from calling PHP     directly with a URL like <var class="filename">http://my.host/cgi-bin/php/secretdir/script.php</var>.     Instead, PHP will only parse in this mode if it has gone through     a web server redirect rule.    </p>    <p class="simpara">     Usually the redirection in the Apache configuration is done with     the following directives:    </p>    <div class="example-contents"><div class="cdata"><pre>Action php-script /cgi-bin/phpAddHandler php-script .php</pre></div>    </div>    <p class="simpara">     This option has only been tested with the Apache web server, and     relies on Apache to set the non-standard CGI environment variable     <span class="envar">REDIRECT_STATUS</span> on redirected requests.  If your     web server does not support any way of telling if the request is     direct or redirected, you cannot use this option and you must use     one of the other ways of running the CGI version documented     here.    </p>   </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="security.cgi-bin.default.html">Case 1: only public files served</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.cgi-bin.doc-root.html">Case 3: setting doc_root or user_dir</a></div> <div class="up"><a href="security.cgi-bin.html">Installed as CGI binary</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -