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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠