From cb7acb36ab08393d1fdcec84fe9d6754c88203ee Mon Sep 17 00:00:00 2001 From: Andy Bauer Date: Sat, 24 Oct 2015 13:04:54 -0500 Subject: [PATCH] Use relative URL's instead of absolute --- web/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index 70e177aafb..98df13e611 100644 --- a/web/index.php +++ b/web/index.php @@ -58,7 +58,12 @@ $protocol = 'http'; } define( "ZM_BASE_PROTOCOL", $protocol ); -define( "ZM_BASE_URL", $protocol.'://'.$_SERVER['HTTP_HOST'] ); + +// Absolute URL's are unnecessary and break compatibility with reverse proxies +// define( "ZM_BASE_URL", $protocol.'://'.$_SERVER['HTTP_HOST'] ); + +// Use relative URL's instead +define( "ZM_BASE_URL", "" ); // Check time zone is set if (!ini_get('date.timezone') || !date_default_timezone_set(ini_get('date.timezone'))) {