ProxyPass with Client-IP address

Discussion in 'Apache' started by pas, Apr 21, 2010.

  1. #1
    Hello guys,

    I'm looking for a way to pass also the Client-IP of the Visitor to the target server.
    My actual code is this:

    
    
    <VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName test.heremydomain.com
    ServerAlias www.test.heremydomain.com
    ProxyRequests On
    ProxyPass / http://www.heremytargetdomain.com/
    ProxyPassReverse / http://www.heremytargetdomain.com/
    </VirtualHost>
    Code (markup):
    This code works also, but when I look in the Access-Log of my "heremytargetdomain.com" site, I just see the IP-Address of my Apache-Server.

    What I have to do, that I see just the the real client ip and not my server ip?

    Thankz a lot!
     
    pas, Apr 21, 2010 IP