On Sun, Nov 12, 2000 at 09:09:49PM +0800, Alson Wong wrote:
>
> The $ENV{'REMOTE_ADDR'}of server B still return the real ip address of
> server A.
Check out the link I sent to The Guide (tm), there's a Perl snippet
to recover the IP and do the ->remote_ip() call:
> From: barries <[EMAIL PROTECT
MAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, November 12, 2000 2:09 PM
Subject: Re: Changing REMOTE_ADDR passing to a request.
> hi,
> I have not use mod_proxy_add_forward before. I have download the source
code
> and have a look at it.
> It seems like just passing "
To: Alson Wong <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, November 12, 2000 11:34 AM
Subject: Re: Changing REMOTE_ADDR passing to a request.
> On Sun, Nov 12, 2000 at 11:07:59AM +0800, Alson Wong wrote:
> >
> > So, how do I pass/set the environment variab
On Sun, Nov 12, 2000 at 11:07:59AM +0800, Alson Wong wrote:
>
> So, how do I pass/set the environment variable of REMOTE_ADDR from
> server A ? So that I can control the env of remote_addr at the server
> B ?
Well, you could do it several ways. The "normal" way is to set a
header in the reque
hello,I have a question here. There are 2
server, server A and server B.There are also 2 cgi
files.access-ip.cgi store in server A. ip.cgi store in server
B.The access-ip.cgi looks like this:#!/usr/bin/perlprint
"Content-type: text/html\n\n";use
LWP::Simple;@testing=get('http://www.serverB