diff --git a/bin/vhost-add b/bin/vhost-add index 2335d7b..fe3e11b 100755 --- a/bin/vhost-add +++ b/bin/vhost-add @@ -14,6 +14,7 @@ export SYSTEM_USER_USERNAME export SYSTEM_USER_GROUP export PHP_ENABLED export MOD_FCGI +export MOD_HTTP2 export PHP_VERSION export WEB_HTTP export WEB_HTTPS diff --git a/src/templates/vhost-http.twig b/src/templates/vhost-http.twig index 6d0e122..4c996e0 100644 --- a/src/templates/vhost-http.twig +++ b/src/templates/vhost-http.twig @@ -28,13 +28,13 @@ SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/" +{% endif %} {% if MOD_HTTP2 is not empty %} Protocols h2 http/1.1 {% endif %} -{% endif %} {% block extra %}{% endblock extra %} {% endblock body %}