`

在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, 配置 

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics