add http2

This commit is contained in:
Simon Vieille 2021-11-29 11:53:20 +01:00
parent f14503e854
commit f0280e134c
2 changed files with 7 additions and 0 deletions

View File

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

View File

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