【发布时间】:2012-09-13 07:18:55
【问题描述】:
事实上,我得到了将 http 重定向到 https 的方法,因为我在 web.xml 中添加了一个过滤器。 比如,
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL</web-resource-name>
<url-pattern>/xxx/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
在这种情况下,我可以在 https 模式下请求像 /xxx/* 这样的 URL。
还有一些其他的 url,比如/yyy/*,必须在 http 模式下请求,我该怎么做呢?
【问题讨论】:
标签: http https openssl web.xml resin