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
demandé il y a 4 ans1196 vues
1 réponse
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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions