使用 Docker,我正在构建一个支持 HTTP/2 通信的 Apache 服务器。 然而,由于模块的原因,它与 HTTP/2 不兼容。
[警告信息]\
[http2:warn] [pid 1] 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.
【环境版】
macOS:蒙特利 v12.4
服务器版本:Apache/2.4.53 (Unix)
Docker 版本:23.0.5
我在 Dockerfile 中编写了以下内容作为解决方案,但它似乎不起作用。
-Dockerfile
RUN sed -i \
-e 's/^#\(LoadModule .*mod_mpm_event.so\)/\1/' \
-e '/mod_mpm_prefork.so/s/^/#/' \
/etc/apache2/sites-available/default-ssl.conf