Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

Server Status Client IP

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


info at apachelounge

May 10, 2012, 11:13 AM

Post #1 of 2 (217 views)
Permalink
Server Status Client IP

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 ?

Steffen


minfrin at sharp

May 11, 2012, 4:12 AM

Post #2 of 2 (205 views)
Permalink
Re: Server Status Client IP [In reply to]

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.

Regards,
Graham
--
Attachments: smime.p7s (4.26 KB)

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.