Sun Application Server 9 with https

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?

2. In the screen where I set up the listener, I checked the "Security: Enabled" check box. Now, when I load the Web application, the listener listens on https:. Now, how do I tell the application server to forward requests for http:// to https://?

Thank you!

[941 byte] By [dailysuna] at [2007-11-26 18:58:07]
# 1
Why don't you try this. Set up two http listeners and two virtual servers. Make one for http and one for https. Have the http redirect to https. I think that you can do this by putting a index.htm file in the docroot of the http server that redirects.Mike
mbrown36a at 2007-7-9 20:38:16 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

I think I got it to work. Here is my solution: http://forums.java.net/jive/thread.jspa?threadID=23294&tstart=0

Mike, I am trying to award to you Duke Stars, but the server returns a "server error" (http://forum.java.sun.com/rewards.jspa?doActions=reward&threadID=5138687&# 38;messageID=9514552&dukes=10) when I click on the duke. Sorry! I'll try again in a few days.

Message was edited by:

dailysun

dailysuna at 2007-7-9 20:38:16 > top of Java-index,Application & Integration Servers,Application Servers...