tomcat下web应用http访问自动跳转为https形式访问
注意:这里的tomcat版本为tomcat-5.5.20
- tomcat-5.5.20正常配置https
- tomcat中需要正常“http访问自动跳转为https形式访问”的web应用中的web.xml进行如下配置
<security-constraint>
<web-resource-collection>
<web-resource-name>OPENSSL</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
注:tomcat-5.0.28中以http形式访问其web应用时【无法】自动跳转https

本文详细介绍了在使用Tomcat版本为tomcat-5.5.20时,如何通过web.xml文件配置实现web应用从http到https的自动跳转访问。包括配置security-constraint元素,设置web-resource-collection和user-data-constraint,确保安全性。
1004

被折叠的 条评论
为什么被折叠?



