|
@@ -60,7 +60,16 @@ class ApacheWebsiteApplySSLVirtualHost
|
|
];
|
|
];
|
|
$apache2SSLSample = view('actions.samples.ubuntu.apache2-ssl-conf',$settings)->render();
|
|
$apache2SSLSample = view('actions.samples.ubuntu.apache2-ssl-conf',$settings)->render();
|
|
|
|
|
|
|
|
+ $apache2SSLOptionsSample = view('actions.samples.ubuntu.apache2-ssl-options-conf')->render();
|
|
|
|
+
|
|
|
|
+
|
|
$fileManagerApi = new FileManagerApi();
|
|
$fileManagerApi = new FileManagerApi();
|
|
|
|
+
|
|
|
|
+ $apache2SSLOptionsFilePath = '/etc/apache2/phyre/options-ssl-apache.conf';
|
|
|
|
+ if (!$fileManagerApi->isFileExists($apache2SSLOptionsFilePath)) {
|
|
|
|
+ $fileManagerApi->filePutContents($apache2SSLOptionsFilePath, $apache2SSLOptionsSample);
|
|
|
|
+ }
|
|
|
|
+
|
|
$fileManagerApi->filePutContents('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', $apache2SSLSample);
|
|
$fileManagerApi->filePutContents('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', $apache2SSLSample);
|
|
$fileManagerApi->symlink('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', '/etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf');
|
|
$fileManagerApi->symlink('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', '/etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf');
|
|
|
|
|