HTTP/3 over QUIC is a UDP-based protocol that solves head-of-line blocking and improves performance on lossy networks — mobile, weak Wi-Fi, congested cellular. Apache’s mod_http2 has no HTTP/3 support; LiteSpeed Web Server does, natively, and exposes it through a cPanel-aware toggle. Enabling it is straightforward; the part that catches operators is the firewall rule, since UDP on 443 is usually closed.
What’s happening
LiteSpeed Web Server uses QUIC for HTTP/3. QUIC runs over UDP on port 443 (the same port as TLS-over-TCP). The server advertises HTTP/3 availability via the Alt-Svc: h3=":443" HTTP response header on the first HTTP/1.1 or HTTP/2 response. The browser caches that hint and tries QUIC on the next visit. If UDP 443 is blocked by the firewall, the browser silently falls back to HTTP/2 and the operator believes HTTP/3 “did not work.”
How to verify
Confirm LSWS is running, the right version, and that UDP 443 is open:
/usr/local/lsws/bin/lswsctrl status
/usr/local/lsws/bin/lshttpd -v
ss -ulnp | grep :443
iptables -L INPUT -v -n | grep "udp dpt:443"
curl -sI https://example.com/ | grep -i alt-svc
If ss shows nothing listening on UDP 443, LSWS is not bound there. If iptables shows no UDP 443 rule, the firewall is dropping the packets.
The fix
- Open the firewall for UDP 443. WHM > ConfigServer Firewall (CSF) > Firewall Configuration > add
443toUDP_IN. Save and restart CSF. - LSWS admin console: log in at
https://example.com:7080/. Server Configuration > General > HTTP/3 (QUIC) > set to Yes. Server Configuration > Listeners > pick the secure listener > confirm QUIC port 443 and binding*. - Graceful restart LSWS:
/usr/local/lsws/bin/lswsctrl restart. Confirm UDP 443 is listening:ss -ulnp | grep :443. - The
Alt-Svcheader should now appear automatically on HTTPS responses. Confirm:curl -sI https://example.com/ | grep -i alt-svc. Expected:alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400. - Test from a browser. Chrome DevTools > Network > add the Protocol column. Reload twice — the first hit uses HTTP/2 (the browser learns Alt-Svc), the second should use
h3. If it does not, check thatchrome://flags#enable-quicis enabled (default in stable since 2020). - If you have a CDN in front (Cloudflare, Fastly), the CDN terminates HTTP/3 to the browser regardless of what the origin speaks. In that case enabling HTTP/3 on the origin is optional but harmless.
For environments where edge protocol upgrades are part of regular maintenance, Stack Harbor enables HTTP/3 during onboarding under WHM server management.