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 SYSTEM_USER_GROUP
export PHP_ENABLED export PHP_ENABLED
export MOD_FCGI export MOD_FCGI
export MOD_HTTP2
export PHP_VERSION export PHP_VERSION
export WEB_HTTP export WEB_HTTP
export WEB_HTTPS export WEB_HTTPS

View file

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