From: Luca Toscano You must enable HTTP/2 via Protocols in order to use the
- functionality described in this document:h2 (HTTP/2 over TLS) and h2c (HTTP/2 over TCP).
Two useful configuration schemes are:
+Protocols h2 http/1.1+
Allows HTTP/2 negotiation (h2) via TLS ALPN in a secure VirtualHost. HTTP/2 preamble checking (Direct mode, see H2Direct) is disabled by default for h2.
Protocols h2 h2c http/1.1-
h2 (HTTP/2 over TLS) is the preferred connection scheme chosen by browsers up to now, but the HTTP/2 protocol does not require the use of encryption. To enable h2c (HTTP/2 over TCP) please check the H2Direct directive first.
Allows HTTP/2 negotiation (h2) via TLS ALPN for secure VirtualHost. Allows HTTP/2 cleartext negotiation (h2c) upgrading from an initial HTTP/1.1 connection or via HTTP/2 preamble checking (Direct mode, see H2Direct).
Refer to the official HTTP/2 FAQ for any doubt about the protocol.