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


<< Back to Knowledge Search

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

Hide Properties
First Published      10/01/2014
Last Modified      10/01/2014
Last Published      10/01/2014
Article Audience
Product      ProxySG
Software      SGOS 4, SGOS 5
Topic      Configuration / WUI / CLI
Article Number      000011800
Summary     
Was this helpful?
Comments:
 
Previous MonthNext Month
SunMonTueWedThuFriSat