minfrin at sharp
May 11, 2012, 4:12 AM
Post #2 of 2
On 10 May 2012, at 8:13 PM, Steffen wrote:
> Running a reverse proxy in front of Apache 2.4.2 (known reason, to get more reliable networking in Windows).
> The proxy supplies the X-Forwarded-For header and using in Apache:
> LoadModule remoteip_module modules/mod_remoteip.so
> RemoteIPHeader X-Forwarded-For
> The mod-status page gives as client IP, the reverse proxy IP.
> The access log gives the good client/remote IP.
> Is this by design ?
In the case of the access_log, yes. There are two separate variables representing each IP address, configure the access_log template as appropriate for your needs.
Ideally the mod_status page should give you both IPs, not sure if that is configurable at this point.