users@glassfish.java.net

Re: Sun Application Server 9/Glassfish with https

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Feb 2007 23:01:41 PST

> I want to run my Web application with https. When
> users access
> http://www.myweb.com, I want the Web server to
> automatically redirect to https://www.myweb.com.
> However, I am running into a few issues:
>
> 1. How do I tell Application Server 9 to create a
> listener on the default port. Right now, I have the
> listener using port 80 - users will have to enter
> https://www.myweb.com:80. I don't want to require
> them to enter :80. I thought a listener on 80
> automatically listens to URLs, even if they don't
> include that port. But, when I type in the URL
> without port, all I get is a "Gateway Timeout Error".
> What do I need to do to set up the port correctly?

The default port for https is 443. So if you want to use https://www.myweb.com the glassfish connector for https must listen on port 443 or port 443 must be forwarded to the appropriate port.

Port 80 is only for normal request without transport level security!


--
Wolfram
[Message sent by forum member 'writtmeyer' (writtmeyer)]
http://forums.java.net/jive/thread.jspa?messageID=204582