Forum Moderators: phranque

Message Too Old, No Replies

Mod Proxy logging Remote server address

Is it possible to log the remote server address to which the request sent?

         

kadney

12:36 am on Oct 30, 2009 (gmt 0)

10+ Year Member



I am setting up a mod_proxy with load balancer having two http servers in the pool.

For tracing to which server in the pool the request is forwarded to.

I am using the following CustomLog

LogFormat "%{X-Forwarded-Host}i %l %{X-Forwarded-Server}i %l %{X-Forwarded-For}i %l %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" forward

X-Forwarded-For gives the client Ip, where as X-Forwarded-Server and X-Forwarded-Host provide gives the ip for Proxy server.

Is there a way to log remote server ip address to which load balancer send the request?

Thanks in advance.