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:
@@ -638,7 +638,11 @@ class apache
|
|||||||
&& $domain['ssl'] == '1'
|
&& $domain['ssl'] == '1'
|
||||||
&& $domain['ssl_redirect'] == '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
|
if ($ssl_vhost === true
|
||||||
|
|||||||
@@ -398,7 +398,11 @@ class nginx
|
|||||||
&& $domain['ssl'] == '1'
|
&& $domain['ssl'] == '1'
|
||||||
&& $domain['ssl_redirect'] == '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 the documentroot is an URL we just redirect
|
// if the documentroot is an URL we just redirect
|
||||||
|
|||||||
Reference in New Issue
Block a user