This commit is contained in:
Jamie Cameron
2015-09-14 19:45:25 -07:00
parent 694a9ef746
commit 3ee53333ca

View File

@@ -220,6 +220,9 @@ foreach $v (@virt) {
if (&find_vdirective("SSLEngine", $vm, $conf, 1) eq "on") {
$prot = "https";
}
elsif ($port == 443) {
$prot = "https";
}
$sp = undef if ($sp == 80 && $prot eq "http" ||
$sp == 443 && $prot eq "https");
push(@vurl, $sp ? "$prot://$sn:$sp/" : "$prot://$sn/");