REMOTE_ADDR Weirdness

Phil Mattison plug-discuss@lists.plug.phoenix.az.us
Thu, 12 Jun 2003 14:49:39 -0700


Right. vHostB displays $REMOTE_ADDR.
vHostA reads it back via fopen()/fread() and displays it on the browser.
The address should be that of vHostA, but if they are both on the same
physical host, it shows the IP of vHost B.
--Phil M.

----- Original Message -----
From: R Melder at SPiN Internet Media <rmelder@cheerylynn.com>
To: <plug-discuss@lists.plug.phoenix.az.us>
Sent: Thursday, June 12, 2003 2:31 PM
Subject: RE: REMOTE_ADDR Weirdness


> Which host is referencing $REMOTE_ADDR?
>
> Is this the application flow?
> Browser-->vHost A-->vHost B-->vHost A-->back to browser
>
> ; ) .randy
>
>  ..:: Randy Melder ::..
>  602-279-0135 - www.spininternetmedia.com
>
>
>
>
>
> -----Original Message-----
> From: plug-discuss-admin@lists.plug.phoenix.az.us
> [mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Phil
> Mattison
> Sent: Thursday, June 12, 2003 2:26 PM
> To: plug-discuss@lists.plug.phoenix.az.us
> Subject: REMOTE_ADDR Weirdness
>
>
> Here's a brain teaser for you guys. I'm using the PHP fopen() function
with
> Linux/Apache to read HTTP data from one web server to another (not all
that
> unusual as I understand). REMOTE_ADDR is supposed to have the IP address
of
> the requestor when the responding server script runs, and it usually does,
> except when both web servers are virtual hosts on the same physical
server,
> in which case REMOTE_ADDR is the same as SERVER_ADDR (not good). I've
tried
> it on three different virtual host systems, all with the same result.
> Twilight Zone, anyone?
> --
> Phil Mattison
> Ohmikron Corp.
> 480-722-9595 ext. 1
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss