Tomcat9配置HTTP/2访问
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig honorCipherOrder="false"> <Certificate certificateKeystoreFile="conf/localhost.jks" certificateKeystorePassword="111111" type="RSA" /> </SSLHostConfig> </Connector>
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig honorCipherOrder="false"> <Certificate certificateKeyFile="D:/Tomcat9.0/conf/ca.key" certificateFile="D:/Tomcat9.0/conf/ca.crt"/> </SSLHostConfig> </Connector>
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeyFile="conf/localhost-key.pem" certificateFile="conf/localhost.pem" type="RSA" /> </SSLHostConfig> </Connector>