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>

 

posted @ 2023-02-21 20:13  锐洋智能  阅读(75)  评论(0编辑  收藏  举报