svn: /phpdoc/en/trunk/language/predefined/variables/ server.xml

From: Date: Fri, 22 Mar 2013 22:13:35 +0000
Subject: svn: /phpdoc/en/trunk/language/predefined/variables/ server.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-11136@lists.php.net to get a copy of this message
dm Fri, 22 Mar 2013 22:13:35 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=329894 Log: Added note to SERVER_PORT to warn about spoofing Changed paths: U phpdoc/en/trunk/language/predefined/variables/server.xml Modified: phpdoc/en/trunk/language/predefined/variables/server.xml =================================================================== --- phpdoc/en/trunk/language/predefined/variables/server.xml 2013-03-22 20:05:45 UTC (rev 329893) +++ phpdoc/en/trunk/language/predefined/variables/server.xml 2013-03-22 22:13:35 UTC (rev 329894) @@ -392,6 +392,15 @@ using SSL, for instance, will change this to whatever your defined secure HTTP port is. </simpara> + <note> + <simpara> + Under the Apache 2, you must set <literal>UseCanonicalName = On</literal>, + as well as <literal>UseCanonicalPhysicalPort = On</literal> in order to + get the physical (real) port, otherwise, this value can be spoofed and it + may or may not return the physical port value. + It is not safe to rely on this value in security-dependent contexts. + </simpara> + </note> </listitem> </varlistentry>

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