add http2
This commit is contained in:
parent
f14503e854
commit
f0280e134c
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue