svn: /phpdoc/en/trunk/security/ cgi-bin.xml

From: Date: Fri, 13 Nov 2009 17:04:32 +0000
Subject: svn: /phpdoc/en/trunk/security/ cgi-bin.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5341@lists.php.net to get a copy of this message
vrana Fri, 13 Nov 2009 17:04:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290676 Log: Change enable-force-cgi-redirect to cgi.force_redirect (bug #50077) Bug: http://bugs.php.net/50077 (Closed) enable-force-cgi-redirect is an unknown configure option Changed paths: U phpdoc/en/trunk/security/cgi-bin.xml Modified: phpdoc/en/trunk/security/cgi-bin.xml =================================================================== --- phpdoc/en/trunk/security/cgi-bin.xml 2009-11-13 16:57:41 UTC (rev 290675) +++ phpdoc/en/trunk/security/cgi-bin.xml 2009-11-13 17:04:32 UTC (rev 290676) @@ -63,9 +63,8 @@ protected document on the web server. </simpara> <simpara> - In PHP, compile-time configuration option <link - linkend="configure.enable-force-cgi-redirect">--enable-force-cgi-redirect</link> - and runtime configuration directives <link + In PHP, runtime configuration directives <link + linkend="ini.cgi.force-redirect">cgi.force_redirect</link>, <link linkend="ini.doc-root">doc_root</link> and <link linkend="ini.user-dir">user_dir</link> can be used to prevent this attack, if the server document tree has any directories @@ -101,13 +100,17 @@ </sect1> <sect1 xml:id="security.cgi-bin.force-redirect"> - <title>Case 2: using <literal>--enable-force-cgi-redirect</literal></title> + <title>Case 2: using <literal>cgi.force_redirect</literal></title> <simpara> - This compile-time option prevents anyone from calling PHP + The configuration directive <link + linkend="ini.cgi.force-redirect">cgi.force_redirect</link> + prevents anyone from calling PHP directly with a URL like <filename role="php">http://my.host/cgi-bin/php/secretdir/script.php</filename>. Instead, PHP will only parse in this mode if it has gone through a web server redirect rule. + PHP older than 4.2.0 used <literal>--enable-force-cgi-redirect</literal> + compile time option for this. </simpara> <simpara> Usually the redirection in the Apache configuration is done with

« previous php.doc.cvs (#5341) next »