Apache: Configure for HTTP/2
Configure Apache to use HTTP/2 protocol.
Configuration instructions provided in this page will probably work in the majority of situations, but sometimes they may require adaptation depending on the version of Apache you have. Therefore, we recommend that you refer to the Apache documentation (external link) if you need to know about specific configuration options. In production environments, the configuration of the Apache HTTP server should be carried out by a system administrator to avoid security issues.
- HTTPS is enabled on your server.
- Your Apache is version 2.4.17 or greater.
Let the client define the protocol
ProtocolsHonorOrder On
Protocols h2 http/1.1
With these directives, ProtocolsHonorOrder On
means that Apache chooses the
protocol and HTTP/2 is the first choice.
However, the recommendation is that the client define the preferred protocol. This will allow the GAS to work with services that may not need the HTTP/2 protocol. This will also avoid an error where a client that does not support HTTP/2 receives the following response from the server:
Upgrade: h2 Connection: Upgrade
Follow this procedure to configure Apache with the directive ProtocolsHonorOrder
Off
, allowing the client to select the protocol.