This commit is contained in:
Bozhidar 2024-05-14 12:35:53 +03:00
parent 5c646346e2
commit cfc42dc1a2
2 changed files with 1 additions and 3 deletions

View file

@ -328,9 +328,6 @@ class Domain extends Model
$apacheBaseConfig = $apacheVirtualHostBuilder->buildConfig(); $apacheBaseConfig = $apacheVirtualHostBuilder->buildConfig();
// Certificate setup
$catchMainDomain = ''; $catchMainDomain = '';
$domainExp = explode('.', $this->domain); $domainExp = explode('.', $this->domain);
if (count($domainExp) > 0) { if (count($domainExp) > 0) {

View file

@ -88,6 +88,7 @@ IncludeOptional conf-enabled/*.conf
file_put_contents('/etc/apache2/apache2.conf', $virtualHostMerged); file_put_contents('/etc/apache2/apache2.conf', $virtualHostMerged);
shell_exec('sudo service apache2 restart');
} }
} }