Hi,
glassfish_at_javadesktop.org wrote:
> 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?
>
Hum which version of GlassFish are you using?
You need to add:
<property name="proxiedProtocols" value="http"/>
What will happens is all requests made to
http://www.myweb.com:443 will
be redirected to
https://www.myweb.com.
I will investigate why redirect-port is not working as expected.
Thanks
-- Jeanfrancois
> dailysun
> [Message sent by forum member 'dailysun' (dailysun)]
>
> http://forums.java.net/jive/thread.jspa?messageID=204767
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>