Merge pull request #711 from TimoStramann/patch-1

Remove unnecessary slash for SSL redirect
This commit is contained in:
Michael Kaufmann
2019-08-18 16:15:50 +02:00
committed by GitHub

View File

@@ -244,7 +244,7 @@ class Nginx extends HttpConfigBase
$is_redirect = false;
} else {
$_sslport = $this->checkAlternativeSslPort();
$mypath = 'https://' . Settings::Get('system.hostname') . $_sslport . '/';
$mypath = 'https://' . Settings::Get('system.hostname') . $_sslport;
$this->nginx_data[$vhost_filename] .= "\t" . 'location / {' . "\n";
$this->nginx_data[$vhost_filename] .= "\t\t" . 'return 301 ' . $mypath . '$request_uri;' . "\n";
$this->nginx_data[$vhost_filename] .= "\t" . '}' . "\n";