📄 security.cgi-bin.default.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Case 1: only public files served</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.html">Installed as CGI binary</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.cgi-bin.force-redirect.html">Case 2: using --enable-force-cgi-redirect</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.default" class="sect1"> <h2 class="title">Case 1: only public files served</h2> <p class="simpara"> If your server does not have any content that is not restricted by password or ip based access control, there is no need for these configuration options. If your web server does not allow you to do redirects, or the server does not have a way to communicate to the PHP binary that the request is a safely redirected request, you can specify the option <a href="configure.html#configure.enable-force-cgi-redirect" class="link">--enable-force-cgi-redirect</a> to the configure script. You still have to make sure your PHP scripts do not rely on one or another way of calling the script, neither by directly <var class="filename">http://my.host/cgi-bin/php/dir/script.php</var> nor by redirection <var class="filename">http://my.host/dir/script.php</var>. </p> <p class="simpara"> Redirection can be configured in Apache by using AddHandler and Action directives (see below). </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="security.cgi-bin.html">Installed as CGI binary</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.cgi-bin.force-redirect.html">Case 2: using --enable-force-cgi-redirect</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 + -