Use relative URL's instead of absolute

This commit is contained in:
Andy Bauer 2015-10-24 13:04:54 -05:00
parent de3e7784d5
commit cb7acb36ab
1 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,12 @@ else
$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'))) {