users@glassfish.java.net

Re: IP in node server access log always contains load balancer ip

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Mon, 15 Mar 2010 11:43:32 +0530

Hi Sal,

Load-balancer plugin always passes remote client information with
request. You need to enable auth pass-through to get that information on
node server. Please refer to document :
http://docs.sun.com/app/docs/doc/819-3679/gbwwx?l=en&a=view&q=authpassthroughenabled

Thanks,
Kshitiz

On Sunday 14 March 2010 11:12 PM, glassfish_at_javadesktop.org wrote:
> Hi,
>
> We are using SJSWS 7 as a load balancer with the glassfish load balancer plugin to direct traffic to the Glassfish node. For auditing purposes, we would like to capture the client's ip when access our web application on the node server. Currently, both the application's log and the access log for the glassfish node server only contain the load balancer's ip.
>
> Does anyone know how i can obtain the correct http referrer on the node server? Do I have to do anything to the load balancer to pass the client's ip to the node?
>
> Any help would be greatly appreciated!
>
> Thanks!
> Sal
> [Message sent by forum member 'svelazquez' (el_guapo71_at_hotmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=391804
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>