users@glassfish.java.net

Re: Sun Application Server 9/Glassfish with https

From: <glassfish_at_javadesktop.org>
Date: Wed, 21 Feb 2007 21:46:41 PST

That is very helpful. Thank you! I've been able to get https://www.myweb.com and http://www.myweb.com working. But for some reason the automatic redirect from http://www.myweb.com to https://www.myweb.com isn't working. This is my domain.xml entry:

[code]
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin
-listener" port="4848" security-enabled="false" server-name="" xpowered-by="true">
</http-listener>

<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-lis
tener-ATR-SSL" port="443" security-enabled="true" server-name="" xpowered-by="true">
</http-listener>

<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-li
stener-ATR-NON-SSL" port="80" redirect-port="443" security-enabled="false" server-name="" xpowered-by="true"/>
[/code]

I understand the various listeners. I understand that it is now set up to redirect requests to https://www.myweb.com to the 443 port (because the user is requesting https). But in the instructions under Solution 3 you suggest that I can add [code]<property name="proxiedProtocols" value="http"/>[/code] directly below the port 443 line (the second one). When I do that and attempt to start the server, I get a XML error (Failed to create the XML-DOM Document). I am understanding correctly that, for solution 3, you say that I have the 443 listener and 80 listeners set up, and that I add the property line below the 443 listener?

dailysun
[Message sent by forum member 'dailysun' (dailysun)]

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