diff options
author | Alexandre Alouit <alexandre.alouit@gmail.com> | 2015-12-22 16:41:35 +0100 |
---|---|---|
committer | Alexandre Alouit <alexandre.alouit@gmail.com> | 2015-12-22 16:41:42 +0100 |
commit | cfc790f7f3cc0b5c08dda9c32a5f7c8737a729b4 (patch) | |
tree | 376f440bc9e7883dc1dea9d041c3d599750e8b89 | |
parent | f4c6edd2f52b6d1332354c7c0e364a61c40b5ef9 (diff) |
bugfix
fix first creation for nginx
Diffstat (limited to '')
-rwxr-xr-x | src/server/plugins-available/nginx_plugin.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/plugins-available/nginx_plugin.inc.php b/src/server/plugins-available/nginx_plugin.inc.php index fb2329a..908f40e 100755 --- a/src/server/plugins-available/nginx_plugin.inc.php +++ b/src/server/plugins-available/nginx_plugin.inc.php @@ -1102,7 +1102,10 @@ class nginx_plugin { // Check if a SSL cert exists $ssl_dir = $data['new']['document_root'].'/ssl'; - if(!isset($data['new']['ssl_domain']) OR empty($data['new']['ssl_domain'])) { $data['new']['ssl_domain'] = $data['new']['domain']; } + if(!isset($data['new']['ssl_domain']) OR empty($data['new']['ssl_domain'])) { + $data['new']['ssl_domain'] = $data['new']['domain']; + $vhost_data['ssl_domain'] = $data['new']['domain']; + } $domain = $data['new']['ssl_domain']; $tpl->setVar('ssl_domain', $domain); $key_file = $ssl_dir.'/'.$domain.'.key'; @@ -2945,3 +2948,4 @@ class nginx_plugin { } // end class ?> + |