users@glassfish.java.net

Glassfish 2.1.1 redirect https => http behind load balancer

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Mar 2010 08:04:15 PST

We are trying to get our webapp to run on 3 Glassfish servers that are behind a load balancer. The load balancer is handling the SSL traffic and off loading the request to port 80 on the Glassfish servers. However, when Glassfish executes a redirect (even if the redirect is a relative URL) it is re-writing the URL and replacing the HTTPS with HTTP. Is there any way to stop this from happening?

here is a mock example of what is happening:
1) request to https://www.glassfishserver.com
2) redirect is issued to https://www.glassfishserver.com/webapp
3) Glassfish then re-writes it and send the redirect to the client as http://www.glassfishserver.com/webapp


Any help would be appreciated.
[Message sent by forum member 'cpadmin' (cpadmin_at_ucd.ie)]

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