diff options
Diffstat (limited to 'src')
-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 ?> + |