Re: Changing REMOTE_ADDR passing to a request.

2000-11-12 Thread barries
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

Re: Changing REMOTE_ADDR passing to a request.

2000-11-12 Thread Bogomolnyi Constantin
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 "

Re: Changing REMOTE_ADDR passing to a request.

2000-11-12 Thread Alson Wong
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

Re: Changing REMOTE_ADDR passing to a request.

2000-11-11 Thread barries
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

Changing REMOTE_ADDR passing to a request.

2000-11-11 Thread Alson Wong
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