allow non-standard ssl-port for ssl-redirects (actually, put the port in there if non-standard is defined in ip/port combination), fixes #201

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-09-25 17:08:06 +02:00
parent a993295356
commit 7cdfdda45c
2 changed files with 10 additions and 2 deletions

View File

@@ -638,7 +638,11 @@ class apache
&& $domain['ssl'] == '1'
&& $domain['ssl_redirect'] == '1')
) {
$domain['documentroot'] = 'https://' . $domain['domain'] . '/';
$_sslport = '';
if ($domain['port'] != '443') {
$_sslport = ":".$domain['port'];
}
$domain['documentroot'] = 'https://' . $domain['domain'] . $_sslport . '/';
}
if ($ssl_vhost === true