VCL-1112 - SSL Offload
testsetup.php: added check for BASEURL starting with "http:" if SSLOFFLOAD is enabled
diff --git a/web/testsetup.php b/web/testsetup.php
index c07a0db..609f0ab 100644
--- a/web/testsetup.php
+++ b/web/testsetup.php
@@ -222,10 +222,10 @@
else {
if(substr_compare(BASEURL, 'https:', 0, 6, true) == 0)
pass("BASEURL correctly set to use https");
- elseif(SSLOFFLOAD == 1)
+ elseif(SSLOFFLOAD == 1 && substr_compare(BASEURL, 'http:', 0, 5, true) == 0)
pass("BASEURL set to use http as SSL is offloaded to load balancer");
else
- fail("BASEURL is not set to use https. https is required.");
+ fail("BASEURL is not set to use https and SSL offloading is not enabled. https is required.");
}
print "</ul>\n";