I dont know about doing it via the config files, but i guess you could write a filter that will check the requests url is https and if not redirect them to the correct the https url.
On 6/20/07, Vigorito, Nicholas E. <[EMAIL PROTECTED]> wrote:
Doing that will make it so that ALL apps on the server can only be connected to via HTTPS, correct? Any way to do it just for one app? Nick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] rg] On Behalf Of ben short Sent: Wednesday, June 20, 2007 11:04 AM To: Tomcat Users List Subject: Re: Tomcat application connect via https only? In the server.xml that comes with tomcat there are 2 HTTP/1.1 connectors defined. One is on port 8080 the other is on port 8443. Comment out the 8080 one and uncomemnt the 8443 one and change the port to 443. Install your cert and you should be good to go. Regards Ben Short On 6/20/07, Vigorito, Nicholas E. <[EMAIL PROTECTED]> wrote: > I am a newbie to Tomcat. I have 5.0.28. I would like to set up a web > application so that one can ONLY connect to it via https. Anyone know > how I can do this? > I was able to set up Tomcat (via server.xml and certificates) so that > one can connect to the app via either http or https and can even force > it to redirect http to https via the "user-data-constraint" and > "transport-guarentee" elements in the web application's web.xml file. > BTW the application is an Axis web service if that matters any. > Nick > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]