【发布时间】:2017-11-14 16:57:33
【问题描述】:
以前我在 apache httpd2.4.18 上很好地使用了 http/2.0。今天我升级到 httpd2.4.25,发现我的所有网页都回到了 http/1.1,并在我的 Firefox v53.0 上带有 Upgrade: "h2" 响应头。我试过Browser won't upgrade to H2 altough "Upgrade" headers are sent,但没用。
响应头是:
Date: Tue, 13 Jun 2017 04:40:05 GMT
Server: Apache/2.4.25 (Red Hat) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 Phusion_Passenger/5.0.18 mod_wsgi/4.5.7 Python/2.6
Upgrade: h2
Connection: Upgrade, Keep-Alive
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 3489
Keep-Alive: timeout=5, max=100
Content-Type: text/html; charset=UTF-8
为什么会这样?我没有更改我的 httpd 服务器的任何配置。
【问题讨论】: