From 6cdfc7724b5f9293079dc923cc1b26ff6e6dccb9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 27 Nov 2021 19:28:08 -0800 Subject: [PATCH] Respect the template-level HTTP2 option --- virtual_feature.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index 8048787..89b72bc 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -217,7 +217,8 @@ sub feature_setup "[".$d->{'ip6'}."]:".$d->{'web_sslport'} } @listen; } my @sslopts = ( 'ssl' ); -push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'}); +push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'} || + $tmpl->{'web_http2'}); if ($virtualmin_nginx::config{'listen_mode'} eq '0') { # Listen on all IPs if (!$old_ip4 && !$old_ip6) {