Skip to content

Commit

Permalink
Merge pull request #1121 from knnniggett/revproxy
Browse files Browse the repository at this point in the history
Use relative URL's instead of absolute
  • Loading branch information
SteveGilvarry committed Nov 3, 2015
2 parents 920bea8 + cb7acb3 commit 5a931db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))) {
Expand Down

0 comments on commit 5a931db

Please sign in to comment.