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
- # To enable HTTP/2 support, uncomment the following line in httpd.conf:
- LoadModule http2_module modules/mod_http2.so
- # And add the following line, to the end of httpd.conf:
- Protocols h2 http/1.1Programming Language: Apache configuration