I have a Debian 10 (had the exact same issue with Debian 9) running an Apache 2.4.38 web server. Apache modules mpm_event
and http2
are installed and the websites are served through HTTPS.
I have added the http2 line in every Apache virtualhost conf file for each of my websites, like :
<VirtualHost *:12080>
# HTTP2
Protocols h2 h2c http/1.1
...
EDIT: When I tested with web-based online tools, I got the answer "HTTP/2 protocol is not supported / ALPN extension is not supported".
When I curl one of my website (curl -I -k https://mywebsite.com
), I have the following response, obviously still in HTTP/1.1:
HTTP/1.1 200 OK
Date: Tue, 30 Jul 2019 03:14:37 GMT
Server: Apache/2.4.38 (Debian)
Set-Cookie: PHPSESSID=7ulo4hj17ukek6s15g99fc2812; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Upgrade: h2,h2c
Connection: Upgrade
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Set-Cookie: C00=; Expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Did I forget something to have HTTP/2?
In case, here is also the content of my /etc/apache2/mods-enabled/http2.conf
file:
<IfModule !mpm_prefork>
Protocols h2 h2c http/1.1
</IfModule>
EDIT: ALPN seems to be NOT enabled (don't know if that can be an explanation) and my OpenSSL version is 1.1.1c.