From eb985ce5515a2458542ddcac1189055900eb3bd7 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 29 Nov 2021 12:11:58 +0100 Subject: [PATCH] add http2 --- bin/vhost-add | 1 + src/templates/vhost-http.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %}