Невозможно заставить протокол HTTP2 работать на сервере

Я новичок в серверах, у меня на моем сервере работают 2 веб-сайта, которые являются моими папами. Я сейчас пытаюсь включить протокол http2.

Серверная ОС: Ubuntu 16.04 Используя apache2

, я выполнил на своем сервере следующие команды:

a2enmod http2

a2enmod ssl

systemctl restart apache2

После включения и перезапуска модов я добавил к своему виртуальному хосту ssl на порт 443:

Protocols h2 http/1.1 

После этого я запустил:

apt-get update
apt-get upgrade

И после этого снова перезапустил группу, но без изменений.

Итак, все руководства показывают точный процесс, который я уже проделал, но мои веб-сайты просто решают оставаться в протоколе HTTP 1.

Я пробовал поискать в Google, но так как я не профессионал в этом вопросе, я Я в шрамах плохо что-то испортил. Так что я хотел бы получить ваш вклад в то, что я должен попробовать.

Мой виртуальный хост для моего SSL.

<IfModule mod_ssl.c>
<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.

        Protocols h2

        ServerName domain.nl
        ServerAlias www.domain.nl

        ServerAdmin email.com
        DocumentRoot /var/www/domain.nl/public_html

        <Directory "/var/www/domain.nl/public_html">
         AllowOverride All
         Allow from All
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/stinger_error.log
        CustomLog ${APACHE_LOG_DIR}/stinger_access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/domain.nl/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.nl/privkey.pem
</VirtualHost>
</IfModule>

Что я пропустил?

0
задан 18 April 2019 в 13:35
1 ответ

Оказалось, что это предварительный форк, несовместимый с HTTP2.

Я использовал следующее руководство, чтобы исправить это.

https://techwombat.com/enable-http2-apache-ubuntu-16-04/

0
ответ дан 24 November 2019 в 00:16

Теги

Похожие вопросы