`
antgreen
  • 浏览: 48610 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

在Tomcat下申请证书,并实现以https访问网页资源

阅读更多
分享《Spring2.0核心技术与最佳实践》作者廖雪峰的SSL配置文档
希望对大家在Tomcat的配置上有所帮助
按照文档中的步骤操作完后

修改Tomcat\conf\web.xml

在</welcome-file-list>下添加


<!-- 强制使用https访问页面 -->
    <security-constraint>
<web-resource-collection>
<!-- 定义使用https访问的URL -->
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
    </security-constraint>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics