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 年前檢視次數 1160 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南