From 7a65268a2673e061493f15093e9ae34c5bee428e Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 13 May 2024 15:16:31 +0300 Subject: [PATCH] Update MasterDomain.php --- web/app/MasterDomain.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/MasterDomain.php b/web/app/MasterDomain.php index c03361f..008cb39 100644 --- a/web/app/MasterDomain.php +++ b/web/app/MasterDomain.php @@ -55,8 +55,8 @@ class MasterDomain shell_exec('touch /var/www/logs/apache2/error.log'); if (!empty($apacheBaseConfig)) { - file_put_contents('/etc/apache2/sites-available/'.$this->domain.'.conf', $apacheBaseConfig); - shell_exec('ln -s /etc/apache2/sites-available/'.$this->domain.'-default.conf /etc/apache2/sites-enabled/'.$this->domain.'-default.conf'); + file_put_contents('/etc/apache2/sites-available/zzz-'.$this->domain.'.conf', $apacheBaseConfig); + shell_exec('ln -s /etc/apache2/sites-available/zzz-'.$this->domain.'-default.conf /etc/apache2/sites-enabled/'.$this->domain.'-default.conf'); } // Install SSL @@ -135,8 +135,8 @@ class MasterDomain file_put_contents($apache2SSLOptionsFilePath, $apache2SSLOptionsSample); } - file_put_contents('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', $apacheBaseConfigWithSSL); - shell_exec('ln -s /etc/apache2/sites-available/'.$this->domain.'-ssl.conf /etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf'); + file_put_contents('/etc/apache2/sites-available/zzz-'.$this->domain.'-ssl.conf', $apacheBaseConfigWithSSL); + shell_exec('ln -s /etc/apache2/sites-available/zzz-'.$this->domain.'-ssl.conf /etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf'); }