Apache2 povolenie HTTP/2
Intalacia HTTP/2 protokolu v apache2.
Pre pdoporu ttp je potrebne nainstalovat (debian 10):
sudo apt-get install php7.3-fpm
sudo a2dismod php7.3
sudo a2enconf php7.3-fpm
sudo a2enmod proxy_fcgi
Zakázanie mpm_prefork
a2dismod mpm_prefork
Povolenie mpm_event
a2enmod mpm_event
Povolenie http2
a2enmod ssl
a2enmod http2
Resrt http servera:
systemctl restart apache2
Povolenie http2 potokolu v kofiguracii https virtualhosta webserveru apache2:
nano /etc/apache2/sites-enabled/blog.mhasin.eu-le-ssl.conf
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/public_html/example.com
SSLEngine on
SSLCertificateKeyFile /path/to/private.pem
SSLCertificateFile /path/to/cert.pem
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
Protocols h2 http/1.1
</VirtualHost>
Do konfiguracie je potrebne pridat nastavenie:
Protocols h2 http/1.1
Preferovaný protokol bude HTTP/2 ak klient tento protokol nepodporuje tak prejde na protokol HTTP/1.1
Kontrola aktuálneho protokolu http serveru:
curl -I https://blog.mhasin.eu
Web test:
https://tools.keycdn.com/http2-test