tomcat8
conf / the server.xml
HTTP Central Review belonging to port 80 (the default port 8080 Tomcat)
<Connector Port = "80" = Protocol "the HTTP / 1.1"
connectionTimeout = "20000"
the redirectPort = "443" />
After conf /web.xml lowermost </ web-app> before adding
<Login-config>
<-! Setting the Authorization for the SSL ->
<-Method the auth> the CERT-the CLIENT </ the auth-Method>
<-the realm name > Client-Cert Control only the Users Area </ realm-name>
</ the Login-config>
<Security-constraint A>
<-! Setting the Authorization for SSL ->
<Web-Resource-Collection>
<Web-Resource-name> SSL </ web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
之后重启tomcat即可
When setting automatically jump to https to http tomcat
Guess you like
Origin www.cnblogs.com/qianzf/p/12158392.html
Recommended
Ranking