Thank you. As we use tomcat backend I'll just change server.xml to add 
{X-Forwarded-For} and restart the service.

On 07/09/12 14:40, eLo wrote:
> Hi,
>
> You will have to modify your apache LogFormat value to include 
> X-Forwarded-For.
>
> For example: (xxx.xxx.xxx.100 = LB, xxx.xxx.xxx.200 = X-Forwaded-For IP)
>
> - if i have this LogFormat line:
>
> LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" 
> \"%{User-Agent}i\"" customlog
>
> - access_log line will appear like:
>
> xxx.xxx.xxx.100 - - [07/Sep/2012:14:21:30 +0100] "GET 
> /path/to/picture.gif HTTP/1.1" 200 885 
> "http://www.your.site/a_link.php"; "Mozilla/4.0 (compatible; MSIE 8.0; 
> Windows NT 5.1; Trident/4.0)"
>
>
> - so we add X-Forwaded-For value to record the IP that the LB server 
> is sending to us via "Add X-forwarded":
>
> LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" 
> \"%{User-Agent}i\" \"%{X-Forwarded-For}i\"" customlog
>
> - and we get:
>
> xxx.xxx.xxx.100 - - [07/Sep/2012:14:21:30 +0100] "GET 
> /path/to/picture.gif HTTP/1.1" 200 885 
> "http://www.your.site/a_link.php"; "Mozilla/4.0 (compatible; MSIE 8.0; 
> Windows NT 5.1; Trident/4.0)" "xxx.xxx.xxx.200"
>
> Please note that your log format might differ, but the value of 
> X-Forwarded-For should be the same:
>
> \"%{X-Forwarded-For}i\"
>
>
> Regards,
> eLo
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to