From 3ee53333ca3bbc31ec432d5d8ab9e5d2bd8c5bdc Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 14 Sep 2015 19:45:25 -0700 Subject: [PATCH] Assume HTTP for port 443 https://github.com/webmin/webmin/issues/217 --- apache/index.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apache/index.cgi b/apache/index.cgi index 854c43c7f..d8d034f2b 100755 --- a/apache/index.cgi +++ b/apache/index.cgi @@ -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/");