[FX.php List] Server[Remote_ADDR] not for OS X SSL pages
Jonathan Schwartz
jschwartz at exit445.com
Tue Aug 26 09:58:12 MDT 2008
Hi Folks,
Revisiting the subject of Remote Address...
I just got my ssl cert working. For pages using https, the
Remote_Addr is not working, yet it works fine on http pages.
It appears that OS X server uses BOTH syntaxes, one for each protocol.
The if/then code we discussed last week solved this one.
From Dale...
if (isset($_SERVER['HTTP_PC_REMOTE_ADDR']))
{
$remoteHost = $_SERVER['HTTP_PC_REMOTE_ADDR'];
}
else
{
$remoteHost = $_SERVER['REMOTE_ADDR'];
}
FYI.
J
--
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011
More information about the FX.php_List
mailing list