Hi Hung, Please modify web.xml in $catalina_home/conf/
Please add the following section just before the ending </web-app> tag: <security-constraint> <web-resource-collection> <web-resource-name>Automatic SSL Forwarding</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee> CONFIDENTIAL </transport-guarantee> </user-data-constraint> </security-constraint> This will divert all the request to https one. dongyi -----Original Message----- From: ngolehung84 [mailto:[EMAIL PROTECTED] Sent: 14 June 2006 18:06 To: users@tomcat.apache.org Subject: Configure SSL Hi, I have configured my web site to use SSL successfully. But, the client can access my website from 2 URL with 2 protocol Http and Https For example: The client can access my website with: http://localhost:8080/mysite/ https://localhost:8443/mysite/ Now, I want to configure Tomcat to allow the client access my website from one URL only: https://localhost:8443/mysite/ And if client uses this URL: http://localhost:8080/mysite/ the exception will be returned to the client. How can I do that? Thanks in advance, Hung. -- View this message in context: http://www.nabble.com/Configure--SSL-t1787438.html#a4868972 Sent from the Tomcat - User forum at Nabble.com. --------------------------------------------------------------------- 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]