From cfc42dc1a27ac4a37f9df9fdb588c6c6555cbaa7 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 14 May 2024 12:35:53 +0300 Subject: [PATCH] update --- web/app/Models/Domain.php | 3 --- web/app/VirtualHosts/ApacheBuild.php | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app/Models/Domain.php b/web/app/Models/Domain.php index ec67050..01d8d93 100644 --- a/web/app/Models/Domain.php +++ b/web/app/Models/Domain.php @@ -328,9 +328,6 @@ class Domain extends Model $apacheBaseConfig = $apacheVirtualHostBuilder->buildConfig(); - - // Certificate setup - $catchMainDomain = ''; $domainExp = explode('.', $this->domain); if (count($domainExp) > 0) { diff --git a/web/app/VirtualHosts/ApacheBuild.php b/web/app/VirtualHosts/ApacheBuild.php index 8c5ce38..1f09cd4 100644 --- a/web/app/VirtualHosts/ApacheBuild.php +++ b/web/app/VirtualHosts/ApacheBuild.php @@ -88,6 +88,7 @@ IncludeOptional conf-enabled/*.conf file_put_contents('/etc/apache2/apache2.conf', $virtualHostMerged); + shell_exec('sudo service apache2 restart'); } }