Почему после включения mod_http2 в заголовках http/1.1?
Порядок моих действий:
1. a2enmod ssl
2. certbot --manual [domain] (Let`s crypt SSL)
3. Настройка конфига хоста:
Конфиг
<VirtualHost *:80>
ServerName lalal.domain
ServerAlias www.lalal.domain
DocumentRoot /home/user/lalal.domain
RedirectMatch permanent ^/(.*) https://lalal.domain/$1
</VirtualHost>
<VirtualHost *:443>
ServerName lalal.domain
ServerAlias www.lalal.domain
# For https
Protocols h2 http/1.1
DocumentRoot /home/user/lalal.domain
DirectoryIndex index.html index.php
LogLevel info ssl:error
ErrorLog ${APACHE_LOG_DIR}/lalal.domain-error.log
CustomLog ${APACHE_LOG_DIR}/lalal.domain-access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/lalal.domain/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/lalal.domain/privkey.pem
<Directory /home/user/lalal.domain>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
4. add-apt-repository -y ppa:ondrej/apache2
5. Обновление апача до последней версии что бы установить mod_http2: apt-get --only-upgrade install apache2 -y
6. a2enmod http2
7. systemctl restart apache2
В итоге получаю ответ:
Apache VersionServer version: Apache/2.4.29 (Ubuntu)
Server built: 2018-01-14T11:23:59
Apache Modulesapachectl -t -D DUMP_MODULES | grep http
http_module (static)
http2_module (shared)
apache.conftail ../apache2.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
# For https
Protocols h2 http/1.1
# For http
Protocols h2c http/1.1