PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

情形二:使用 --enable-force-cgi-redirect 选项> <以 CGI 模式安装时
Last updated: Sun, 25 Nov 2007

view this page in

情形一:只运行公开的文件

如果 web 服务器中所有内容都受到密码或 IP 地址的访问限制,就不需要设置这些选项。如果 web 服务器不支持重定向,或者 web 服务器不能和 PHP 通信而使访问请求变得更为安全,可以在 configure 脚本中指定 --enable-force-cgi-redirect 选项。除此之外,还要确认 PHP 程序不依赖其它方式调用,比如通过直接的 http://my.host/cgi-bin/php/dir/script.php 访问或通过重定向访问 http://my.host/dir/script.php

在Apache中,重定向可以使用 AddHandler 和 Action 语句来设置,请看下一节。



add a note add a note User Contributed Notes
情形一:只运行公开的文件
mio2007 at gmail dot com
08-Sep-2007 05:34
Please, make hrefrences to previos & netx page of this manual on this page under text of chapter (not oly under comments) as it was on a previus pages. Thx, GL.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites