Change redirect host from main domain name to requested domain name

This commit is contained in:
Janos Muzsi
2016-11-24 22:55:57 +01:00
parent 54200427ab
commit 2c00f982d8
3 changed files with 10 additions and 8 deletions

View File

@@ -447,7 +447,7 @@ class nginx extends HttpConfigBase
$_sslport = ":" . $ssldestport['port'];
}
$domain['documentroot'] = 'https://' . $domain['domain'] . $_sslport . '/';
$domain['documentroot'] = 'https://$host' . $_sslport . '/';
}
// avoid using any whitespaces