Hi,
You do not need to redirect to https location in GlassFish. Just
redirect to
http://www.glassfishserver.com/webapp in GlassFish. The
load-balancer plugin will take care of converting http to https. This is
based on rewrite-location being set to true(default setting) in
load-balancer xml. Refer to document :
http://docs.sun.com/app/docs/doc/821-0182/gbwwx?l=en&a=view
Thanks,
Kshitiz
On Wednesday 10 March 2010 09:34 PM, glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>