| 标准 | RFC 7301 |
|---|---|
| 常见取值 | h2(HTTP/2)、http/1.1、h3(HTTP/3 经 QUIC) |
| 作用 | 客户端与服务器在握手中确定 HTTP 版本 |
| 失败表现 | 协商不一致时回退到 http/1.1 或握手告警 |
查看协商结果
查看协商结果
openssl s_client -connect example.com:443 -alpn h2 </dev/null 2>&1 | grep -i alpn
curl -sI --http2 https://example.com | head -1关闭 ALPN 或未配置会导致 HTTP/2 无法启用,浏览器会静默回退到 HTTP/1.1,性能优化失效。