为什么我在WEB.XML 里面配置了
- XML code
<login-config><!-- Authorization setting for SSL --><auth-method>CLIENT-CERT</auth-method><realm-name>Client Cert Users-only Area</realm-name></login-config><security-constraint><!-- Authorization setting for SSL --><web-resource-collection ><web-resource-name >TLS</web-resource-name><url-pattern>/*</url-pattern></web-resource-collection><user-data-constraint><transport-guarantee>CONFIDENTIAL</transport-guarantee></user-data-constraint></security-constraint>
还是不能把HTTP强制跳转成HTTPS?
HTTPS配置成功
------解决方案--------------------------------------------------------
web.xml这个里面应该写SSL吧:
<web-resource-name>SSL</web-resource-name>
另外这个做了没?
server.xml
<Connector port="80" protocol="HTTP/1.1" redirectPort="443" />
看看这里比较完整:
http://jawsy.blog.51cto.com/752812/240485