HTTP/2.0 与 WampServer 3.0.6 不工作
HTTP/2.0 with WampServer 3.0.6 doesn't work
我想尝试新版本的 http 协议 ( http2 ),特别是最新版本 WampServer 上的 server_push 函数(3.0.6,2.4.23 Apache 版本和 OpenSSL/1。 0.2h ).
我已经激活了 http2_module(默认情况下激活 ssl 模块)并将其配置为在 TLS 和 clearText 连接中优先使用 http2。
httpd.conf 文件:
<IfModule http2_module>
LogLevel http2:info
Protocols h2 h2c http/1.1
</IfModule>
并重启服务。
但是当我启动 localhost 页面,一个基本的 PHP 脚本页面或 phpinfo 时,Apache 使用的协议版本总是 HTTP/1.1
我使用 Chrome(版本 54.0.2840.99 m)或 Firefox(版本 50.0)等浏览器。
如果您有解决问题的想法?
没有浏览器支持没有 HTTPS (h2c) 的 HTTP/2,因此您必须为 HTTP/2 使用 TLS。
https://http2.github.io/faq/#does-http2-require-encryption
此外 HTTP/2 需要强加密,因此您需要 TLS 以确保您没有使用这些密码:https://http2.github.io/http2-spec/#BadCipherSuites
我想尝试新版本的 http 协议 ( http2 ),特别是最新版本 WampServer 上的 server_push 函数(3.0.6,2.4.23 Apache 版本和 OpenSSL/1。 0.2h ).
我已经激活了 http2_module(默认情况下激活 ssl 模块)并将其配置为在 TLS 和 clearText 连接中优先使用 http2。
httpd.conf 文件:
<IfModule http2_module>
LogLevel http2:info
Protocols h2 h2c http/1.1
</IfModule>
并重启服务。
但是当我启动 localhost 页面,一个基本的 PHP 脚本页面或 phpinfo 时,Apache 使用的协议版本总是 HTTP/1.1
我使用 Chrome(版本 54.0.2840.99 m)或 Firefox(版本 50.0)等浏览器。
如果您有解决问题的想法?
没有浏览器支持没有 HTTPS (h2c) 的 HTTP/2,因此您必须为 HTTP/2 使用 TLS。 https://http2.github.io/faq/#does-http2-require-encryption
此外 HTTP/2 需要强加密,因此您需要 TLS 以确保您没有使用这些密码:https://http2.github.io/http2-spec/#BadCipherSuites