如题,系统版本如下:
面板版本 7.02,
Apache版本 2.4.41
PHP版本 5.5和5.4
看到面版原有的apache配置文件中已启用了HTTP/2:
LoadModule http2_module modules/mod_http2.so
<IfModule http2_module>
ProtocolsHonorOrder On
Protocols h2 http/1.1
</IfModule>
然后再网站的配置文件中也已指定开启HTTP/2
<VirtualHost *:443>
...
Protocols h2 h2c http/1.1
...
</VirtualHost>
但实际客户端访问时,却还是工作在HTTP1.1版本下。
通过打开日志,发现错误提示:
[http2:info] [pid 5410] AH03090: mod_http2 (v1.15.4, feats=CHPRIO+SHA256+INVHD+DWINS, nghttp2 1.22.0), initializing...
[Mon Oct 21 14:21:44.440052 2019] [http2:warn] [pid 5410] 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.
[Mon Oct 21 14:21:44.443079 2019] [mpm_prefork:notice] [pid 5410] AH00163: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations
[Mon Oct 21 14:21:44.443121 2019] [mpm_prefork:info] [pid 5410] AH00164: Server built: Oct 19 2019 10:34:10
发现问题所在:
mod_http2不兼容于prefork模式, 导致启动http/2失败。
|
|