Tuesday, February 28, 2017

HTTP2 Support in Apache HTTP Server

The http2 support is there from Apache Http Server 2.4.17 or higher with the help of mod_http2 module
Once http server is enabled with http2 it can serve hybris that is running on an http 1.1 protocol so that the end user always get the http2 protocol. Apche can be front end with any web application via following the blog HTTP Server mod_jk configuration to load balance Tomcat instances
Steps to enable http2 protocol are given below
  • Load the http2 module via adding the following lines in httpd.conf file
         LoadModule http2_module modules/mod_http2.so
  • Add the protocol h2 in VirtualHost for ssl  virtual host area(assumption:already ssl is enabled)
         <VirtualHost *:443>
             ......
             Protocols h2 http/1.1
             .........
        </VirtualHost
Restart the http server and access the ssl page so that you can see the server is enabled with http2

No comments:

Post a Comment