users@glassfish.java.net

Re: fronting gf with SunWebServer7, forward-ip problem

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 26 Mar 2009 18:55:39 -0700

On 03/26/09 04:19 AM, glassfish_at_javadesktop.org wrote:
> Sorry to reply to an oldish thread but I am trying to do the same thing as the opening poster.
>
> I am running glassfish 2.1 and webserver7 update 4.
>
> I have already posted on the webserver forums and they have confirmed (from my logs) that the forward-ip SAF is being executed correctly.
>
> I have added this line to my domain.xml:
>
> <property name="authPassthroughEnabled" value="true"/> but I am still getting this error message in my glassfish logs
>
> [#|2009-03-26T17:32:47.457+1300|WARNING|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteRequest|_ThreadID=21;_ThreadName
> =httpSSLWorkerThread-8181-2;_RequestID=11ab6ecf-254c-4255-98d3-48856ab99b61;|PWC4013: Unable to determine client remote a
> ddress from proxy (returns null)|#]
>
> [#|2009-03-26T17:32:47.457+1300|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=21;_ThreadName=httpSSL
> WorkerThread-8181-2;|
> 127.0.0.1 ip address|#]
>
>
> From what I can see glassfish is doing its job, and webserver is doing its job, but they aren't playing nicely...
>

Do you see a request header with name "Proxy-ip" being passed from the
webserver to GlassFish?
GlassFish uses the value of this header as the remote client.

Jan

> Does anybody have any ideas?
>
> Thanks in advance,
> Gareth
> [Message sent by forum member 'gareth_wilson' (gareth_wilson)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>