From cfc790f7f3cc0b5c08dda9c32a5f7c8737a729b4 Mon Sep 17 00:00:00 2001 From: Alexandre Alouit Date: Tue, 22 Dec 2015 16:41:35 +0100 Subject: bugfix fix first creation for nginx --- src/server/plugins-available/nginx_plugin.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/server/plugins-available/nginx_plugin.inc.php') 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 ?> + -- cgit v1.2.3