It is easier than I thought.
First, ensure you are using APR/native connector. You can download tomcat native from here. Put the tcnative-1.dll in the tomcat lib directory.
Second, change protocol to org.apache.coyote.http11.Http11AprProtocol and add the UpgradeProtocol tag.
$CATALINA_HOME\conf\server.xml
Restart tomcat and we are done.
Check if HTTP/2 is enabled
https://tools.keycdn.com/http2-test
No comments:
Post a Comment