Why is HTTP/2 not being served on EC2 Linux2 Apache 2.4 although enabled?

0

I have httpd.x86_64 2.4.43-1.amzn2 and mod_http2.x86_64 1.15.3-2.amzn2 installed with yum in a linux 2 AMI.

httpd -M
confirms that the http2_module (shared) extension is loaded.

The httpd.conf file includes:
<IfModule mod_http2.c>
Protocols h2 h2c http/1.1
</IfModule>
An SSL certificate is installed.

I am using php-fpm to serve php code (principally WordPress)

Yet apache is not serving http/2 (tested using https://tools.keycdn.com/http2-test ).
Example site on this server: https://www.anticipate.ac.uk/

What could be the problem?

Nigel
質問済み 4年前1196ビュー
1回答
0

The problem is that Apache was using MPM pre_fork, when it has to use MPM event.

See https://www.youtube.com/watch?v=zT2iCk7-HLs for an explanation of how to change this.

Nigel
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ