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'); } }