配置80端口,将8080改成80, redirectPort设置为443
<Connector port="80" redirectPort="443" connectionTimeout="60000" URIEncoding="UTF-8" protocol="HTTP/1.1"/>
<Connector port="443" protocol="HTTP/1.1" ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256" SSLProtocol="TLSv1.1+TLSv1.2+TLSv1.3" clientAuth="false" keystorePass="Nix5n2r8" keystoreType="PKCS12" keystoreFile="C:\apache-tomcat-9.0.52\cert\8665501_weshow.site.pfx" secure="true" scheme="https" SSLEnabled="true"/>
如果想不带www直接用域名访问,在域名解析里不要带www,请使用@
WX20221028-155452.png
————————————————
版权声明:本文为CSDN博主「励志重写JDK」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ajax_yan/article/details/84331905
网友评论