httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Re: Is this possible ?
Date Thu, 20 May 2010 14:33:48 GMT
On Thu, May 20, 2010 at 3:24 PM,  <export@hope.cz> wrote:
>  Let’s suppose this configuration
>
>  |Server1| <----- |Server2| <----- |Client|
>
>  A client sends a request that starts a script on Server2.The script ( running on server2)
>  will download a webpage from Server1.
>  Is it possible to record Client’s IP on Server1, instead of Server2’s IP? In other
words,
>  Server1 will think the request for downloading is directly from Client.
>  That is Server2’s IP will be “invisible” for Server1
>
>  Is this possbile?
>
>  Thanks
>  J.
>

Sure, with a bit of extra work. You need to update the request on
server1 to overwrite the IP address with the client's IP address. The
simplest way to do this is with something like mod_rpaf2 (3rd party
module), or mod_remoteip (currently in trunk).
You will also need to pass the client IP address in the request
headers sent from server2 to server1 - how you do this will depend on
how server2 will 'download' the webpage from server1. Both mod_rpaf
and mod_remoteip allow you to configure the header that it reads the
client IP from.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message