【发布时间】:2013-01-16 14:19:17
【问题描述】:
我的 SSL 配置 Web 应用程序中的 Web.xml 配置(部署在 tomcat(8080 端口)上)如下
<security-constraint>
<web-resource-collection>
<web-resource-name>HTTPSOnly</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
当我尝试https://google.com 时,我得到了页面 当我尝试 http://google.com 时,它会自动重定向到 https://google.com:8443。所以我没有得到页面。
我希望它被重定向到https://google.com 而不是https://google.com:8443。
请帮助我。如果您需要更多详细信息,会告诉您。
【问题讨论】:
-
示例为 google.com,因为它不允许我添加虚拟域名
标签: web-applications ssl ssl-certificate tomcat6 web.xml