{"id":20149,"date":"2016-09-07T07:47:32","date_gmt":"2016-09-07T12:47:32","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20149"},"modified":"2022-06-03T03:42:40","modified_gmt":"2022-06-03T08:42:40","slug":"how-to-set-up-apache-with-http2-support-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-apache-with-http2-support-on-ubuntu-16-04\/","title":{"rendered":"How To Set Up Apache with HTTP\/2 on Ubuntu 16.04"},"content":{"rendered":"
<\/p>\n
We’ll show you, How To Set Up Apache with HTTP\/2. HTTP\/2 is the first major HTTP protocol update since 1997. The main goal of HTTP\/2 is to decrease latency, reduce total number of TCP connections, thus improve page load speed in web browsers. HTTP\/2 is backwards-compatible with HTTP\/1.1, all application semantics of HTTP are the same, except the way of transmitting data via TCP connection. HTTP\/2 leverages multiplexing and allows asynchronous (parallel) requests and provides data compression of HTTP headers. Also, the server push method in HTTP\/2 allows server to send multiple responses for a single request.<\/p>\n
HTTP\/2 support is not included in Ubuntu 16.04, neither with nginx nor with Apache because this feature is considered as experimental by the Apache httpd upstream project, so it is not possible to enable it on an Ubuntu 14.04 VPS <\/a>using the a2enmod command:<\/p>\n <\/p>\n HTTP\/2 support should be enabled in Ubuntu 16.04 after the Apache httpd upstream considers this support to be non-experimental. Table of Contents<\/p>\na2enmod http2\r\nERROR: Module http2 does not exist!<\/pre>\n
\nLuckily, the Http2 module is included in the source, so follow these steps to enable HTTP\/2 support on Apache web server:<\/p>\n