PanNote Engineering Docs

Deploying HTTP/2 and HTTP/3 Dual-Stack Edge Servers

Last updated: 2026-10-22

Dual-stack edge deployments serve HTTP/2 over TCP port 443 while advertising HTTP/3 availability over UDP port 443 through the Alt-Svc HTTP response header defined in RFC 7838.

1. Alt-Svc Discovery Lifecycle

Clients connect initially over TLS 1.3 + HTTP/2 (`ALPN: h2`). Upon receiving Alt-Svc: h3=":443"; ma=86400, compliant browsers cache the alternative service mapping for 24 hours and race subsequent QUIC handshakes asynchronously.

add_header Alt-Svc 'h3=":443"; ma=86400' always;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;

2. Certificate & SNI Alignment

Both TCP and UDP listeners must present identical X.509 certificate chains and Subject Alternative Names (SANs). Mismatched certificates cause clients to silently invalidate HTTP/3 alternative services per RFC 9114 Section 4.1.