Browse Source

add http2

dev
Simon Vieille 2 months ago
parent
commit
eb985ce551
  1. 1
      bin/vhost-add
  2. 2
      src/templates/vhost-http.twig

1
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

2
src/templates/vhost-http.twig

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

Loading…
Cancel
Save