REMOTE_ADDR Weirdness

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Phil Mattison
Date:  
Subject: REMOTE_ADDR Weirdness
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 <>
To: <>
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:
> [mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Phil
> Mattison
> Sent: Thursday, June 12, 2003 2:26 PM
> To:
> 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 -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss