Control http2 http3

You can enable and disable a variety of protocols including HTTP/3 and HTTP/2 in httpd.conf, using the SpdyEnabled directive, like so:

<IfModule LiteSpeed>
SpdyEnabled http3

Other valid parameters are spdy2, spdy3, http2 and off.

All protocols are enabled by default. As such, if you wish to use all SPDY, HTTP/2, and HTTP/3 protocols, there is no need for a SpdyEnabled directive at all.


When you use this directive to explicitly enable one or more protocols, anything not selected will be disabled. For example, SpdyEnabled http2 will enable HTTP/2, while SPDY and HTTP/3 will be disabled. Be careful not to inadvertantly disable a protocol you wanted to use!

Last update: July 10, 2021