-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adria,
On 12/11/2009 6:47 AM, Adria Stembridge wrote: > I'm setting up a standalone instance of Tomcat with SSL. Tomcat5 is > installed on the RHEL5 box and the sample pages load fine. I created a csr > using keytool and requested a certificate from Verisign. After this is > imported (I'm waiting on delivery from verisign), how would I configure > Tomcat to route traffic from http://domain.com:8443 to https://domain.com? Just making sure you didn't mistype: did you mean route traffic from https://domain.com:8443 to https://domain.com? If you really meant http://domain.com:8443 -> https://domain.com then it's easy to set up a redirect by simply doing: response.sendRedirect("https://domain.com" + request.getRequestURI()); I suspect you meant that you wanted to use the default port of 443 for HTTPS traffic once you have a legit, signed certificate from a CA. See Mark's and Pid's responses for how to do that. The best resource is http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html If you are on a *NIX platform, I highly recommend using 'jsvc' (it allows non-root use of ports lower than 1025) which is available as source code in your Tomcat distribution as bin/jsvc.tar.gz. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksiaZ4ACgkQ9CaO5/Lv0PBa+wCgkguavPSHwN9Ff5SeJ8v5vJcU VV8AnRMWf19EOr/mJC6viF35hqf+XhOe =LRh+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org