Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

How to remove port number from https adress and redirect http to
https

christianhau

2007-07-06

Replies:


Hi!

I have set up a tomcat server with ssl that works fine as long as I go to
the adress https://adress:8443 I want to get rid of the port number, is
there any easy way to do this so that tomcat understands the https request
that comes in?

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" keystorePass="changeit" sslProtocol="TLS"
keystoreFile="/root/.keystore"
truststoreFile="/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/cacerts" />

This is my ssl connector in my server.xml. I tried getting a redirct from
http to https going but couldn't do that in tomcat alone, any tips on that
aswell? I have done this:

<Connector port="8080" protocol="HTTP/1.1"

redirectPort="8443" />

With no luck... Thanks for any help!!
--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.