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


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
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?

asked 2 years ago122 views
1 Answer

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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions