将Tomcat的server.xml中的HTTP重定向到HTTPS无效
我安装了tomcat 9.0.37,并且已经配置了TLS。在my server.xml中,我有以下连接器:将Tomcat的server.xml中的HTTP重定向到HTTPS无效,https,http-redirect,tomcat9,Https,Http Redirect,Tomcat9,我安装了tomcat 9.0.37,并且已经配置了TLS。在my server.xml中,我有以下连接器: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="84
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="/root/.keystore"
type="RSA" keystorePass="changeit" />
</SSLHostConfig>
</Connector>
我做错了什么
Bad Request
This combination of host and port requires TLS.