add http2

This commit is contained in:
Simon Vieille 2021-11-29 12:11:58 +01:00
parent f0280e134c
commit eb985ce551
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -28,13 +28,13 @@
SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"
</FilesMatch>
</IfModule>
{% endif %}
{% if MOD_HTTP2 is not empty %}
<IfModule {{ MOD_HTTP2 }}>
Protocols h2 http/1.1
</IfModule>
{% endif %}
{% endif %}
{% block extra %}{% endblock extra %}
</VirtualHost>
{% endblock body %}