Starting HTTP / 2 on the server with Apache
The following tutorial describes how to obtain support for the HTTP protocol / 2 w Apache.
We made in a very simply way to get started.
We run our server console at launch 2 modules:
1 | a2enmod ssl |
1 | a2enmod http2 |
In order to reload the changes, restart Apache command:
1 | systemctl restart apache2 |
We edit the configuration of our vhost as follows:
1 2 3 4 5 6 7 8 9 10 | <VirtualHost *:443> ServerName serwerweb.pl ServerAlias www.serwerweb.pl DocumentRoot /var/www/public_html/serwerweb.pl SSLEngine on SSLCertificateKeyFile /path/to/private.pem SSLCertificateFile /path/to/cert.pem SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 Protocols h2 http/1.1 </VirtualHost> |
Exactly we are interested ruler:
Protocols h2 http/1.1
If you do not have to be add.
Related entries:
Installing Unrar in AlmaLinux 8
Installing and configuring PHP Opcache on Ubuntu 20.04 For Apache and Nginx
Scanning the server for viruses using ClamAV in Ubuntu
Configuration of the UFW firewall on Ubuntu 20.04
The following tutorial describes a very quick change of the terminal that starts by default on Ubuntu 20.04