当前位置: 代码迷 >> Web前端 >> 在Tomcat中挟制web应用程序使用SSL
  详细解决方案

在Tomcat中挟制web应用程序使用SSL

热度:152   发布时间:2012-10-12 10:17:04.0
在Tomcat中强制web应用程序使用SSL

在应用程序的配置文件web.xml中的之前加入:

?

	<security-constraint>
	  <web-resource-collection>
		<web-resource-name>Restricted URLs</web-resource-name>
		<url-pattern>/</url-pattern>
	  </web-resource-collection>
	  <user-data-constraint>
		<transport-guarantee>CONFIDENTIAL</transport-guarantee>
	  </user-data-constraint>
	</security-constraint>

关键字:Tomcat, SSL, Web, 配置?

?

  相关解决方案