only include acme.conf to vhosts if system has ssl and LE enabled (might not exist if not)
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -422,7 +422,11 @@ class nginx extends HttpConfigBase {
|
|||||||
) {
|
) {
|
||||||
$vhost_content.= "\n" . $this->composeSslSettings($domain) . "\n";
|
$vhost_content.= "\n" . $this->composeSslSettings($domain) . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Settings::Get('system.use_ssl') == '1' && Settings::Get('system.leenabled') == '1')
|
||||||
|
{
|
||||||
$vhost_content.= "\t".'include /etc/nginx/acme.conf;'."\n";
|
$vhost_content.= "\t".'include /etc/nginx/acme.conf;'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
// if the documentroot is an URL we just redirect
|
// if the documentroot is an URL we just redirect
|
||||||
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
if (preg_match('/^https?\:\/\//', $domain['documentroot'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user