|
@ -83,7 +83,10 @@ class NginxVhostHelper |
|
|
if (count($matches) >= 2) { |
|
|
if (count($matches) >= 2) { |
|
|
$result['ssl'] = true; |
|
|
$result['ssl'] = true; |
|
|
|
|
|
|
|
|
var_dump($matches); die(); |
|
|
|
|
|
|
|
|
// @TODO find a regex that ignore the ";"
|
|
|
|
|
|
foreach($matches as $index => $match) { |
|
|
|
|
|
$matches[$index] = str_replace(';', '', $match); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (file_exists($matches[0]) && file_exists($matches[1])) { |
|
|
if (file_exists($matches[0]) && file_exists($matches[1])) { |
|
|
$result['ssl_certificate_exists'] = true; |
|
|
$result['ssl_certificate_exists'] = true; |
|
|