users@glassfish.java.net

Re: fronting gf with SunWebServer7, forward-ip problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 Nov 2008 11:48:03 PST

You need to configure your HTTP listeners on the GF instance such that they are aware of being front-ended by the webserver, so that the various request.getXXX methods start looking for the HTTP request headers added by the webserver (including the request header containing the client IP).

You do this by adding this property to all <http-listener> elements in your domain.xml:

  <property name="authPassthroughEnabled" value="true"/>

Please try this out and let us know if you still have any issues.

Thanks,


Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=314624