diff --git a/etc/config.dist b/etc/config.dist index b31d3be..d5effa0 100644 --- a/etc/config.dist +++ b/etc/config.dist @@ -34,6 +34,7 @@ APACHE_VHOST_SITES_ENABLED_PATH=/etc/apache2/sites-enabled PHP_BIN=/usr/bin/php7.4 MOD_FCGI=mod_fastcgi.c # mod_fcgid.c +MOD_HTTP2=mod_http2.c # Available PHP versions # It's possible to add or remove a version diff --git a/src/templates/vhost-http.twig b/src/templates/vhost-http.twig index 44ec75c..6d0e122 100644 --- a/src/templates/vhost-http.twig +++ b/src/templates/vhost-http.twig @@ -28,6 +28,12 @@ SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/" +{% if MOD_HTTP2 is not empty %} + + + Protocols h2 http/1.1 + +{% endif %} {% endif %} {% block extra %}{% endblock extra %}