In a reverse proxy configuration, is it possible for an APACHE web server to see the original client IP address?

Solution

Overview

In a reverse proxy configuration, is it possible for an APACHE web server to see the original client IP address?
My APACHE web server only sees my ProxySG's IP address.  How can I get Apache to see the client's IP address?
 

Cause
Resolution

There are two parts to this solution.  The first part is the proxy needs to be configured to foward the IP address to Apache.  The second part is that Apache needs to save the X-Forwarded-for header into the log.

On the proxy:

Ensure that  "X-forwarded-for" header is added. For more information on how to do this please see 000010319.

On the APACHE server log format:

Use custom format string:

%{X-forwarded-for}i

 

 

 

 

Workaround
Additional Information
Bug Number
InQuira Doc IdKB3889
Attachment

Article Feedback

Did this Article solve your issue?
Additional Comments:
 
Previous MonthNext Month
SunMonTueWedThuFriSat