lamp 开启http2

问答中心分类: OneinStacklamp 开启http2
zi-m.cn asked 6 年 ago

apache 开启HTTP2失败

[Sun Jan 28 00:55:04.264753 2018] [http2:warn] [pid 14413] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Sun Jan 28 00:55:04.278705 2018] [mpm_prefork:notice] [pid 14413] AH00163: Apache/2.4.29 (Unix) OpenSSL/1.0.2n configured — resuming normal operations

3 Answers
oneinstack answered 6 年 ago
apache2.4默认应该支持。

zi-m.cn answered 6 年 ago
apache2.4已经是2.4.29apache 了 默认确实是开启的!但是新版apache 的`prefork`运行模式不支持http2!要换其他模式!默认安装的php7.2是以apa模块运行的!换不了其它模式!所以目前一键安装包并不能在lamp默认下开启http2。希望军哥改进一下这部分的东西

oneinstack answered 6 年 ago
已经调整默认使用event mpm