28 February 2019

HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection. It also introduces unsolicited push of representations from servers to clients. Enabling HTTP/2 on your Apache Server has impact on the resource consumption and if you have a busy site, you may need to consider carefully the implications.

Source code viewer
  1. # To enable HTTP/2 support, uncomment the following line in httpd.conf:
  2. LoadModule http2_module modules/mod_http2.so
  3.  
  4. # And add the following line, to the end of httpd.conf:
  5. Protocols h2 http/1.1
Programming Language: Apache configuration