1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 09:56:01 +00:00

[Nginx] Use separate vhosts for additional server names

This commit is contained in:
FreddleSpl0it
2025-01-29 09:51:45 +01:00
parent 8ed51e500f
commit 0ad327bbe5
4 changed files with 29 additions and 6 deletions

View File

@@ -2277,7 +2277,7 @@ function cors($action, $data = null) {
}
function getBaseURL() {
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
$host = $_SERVER['HTTP_HOST'];
$host = $_SERVER['SERVER_NAME'];
$base_url = $protocol . '://' . $host;
return $base_url;