ITeye博客

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

bluesfeng · 2010-08-18 23:58 · 安装&配置 · 企业架构 · Markdown

在应用程序的配置文件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)

暂无评论。

评论功能维护中,当前仅展示历史评论。