Tomcat配置强制https端口变成8443的解决办法
2021-02-09 17:16
标签:加密算法 col time org uri res code 加密 http 明确: service.xml web.xml 参考:https://blog.csdn.net/a1837634447/article/details/78270292 Tomcat配置强制https端口变成8443的解决办法 标签:加密算法 col time org uri res code 加密 http 原文地址:https://www.cnblogs.com/nizuimeiabc1/p/13060063.html
http默认端口 80
https默认端口 443
将redirectPort=”8443”改为
redirectPort=”443”Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="443" />
Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
keystoreFile="cert/XXX.pfx" cipers="RSA,ECC"
keystoreType="PKCS12" algorithm="SunX509"
keystorePass="XXX" clientAuth="false"
clientAuth="false" sslProtocol="TLS">
UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
Connector>
在welcome-file-list标签后加入login-config>
auth-method>CLIENT-CERTauth-method>
realm-name>Client Cert Users-only Arearealm-name>
login-config>
security-constraint>
web-resource-collection >
web-resource-name >SSLweb-resource-name>
url-pattern>/*url-pattern>
web-resource-collection>
user-data-constraint>
transport-guarantee>CONFIDENTIALtransport-guarantee>
user-data-constraint>
security-constraint>
文章标题:Tomcat配置强制https端口变成8443的解决办法
文章链接:http://soscw.com/essay/53180.html