Skip to content

Commit 51a7b5e

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
2 parents aaeba2a + d228f30 commit 51a7b5e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,9 @@ function onBeforeInsert() {
13411341

13421342
// Letsencrypt can not be activated before the website has been created
13431343
// So we deactivate it here and add a datalog update in onAfterInsert
1344-
if(isset($this->dataRecord['ssl_letsencrypt']) && $this->dataRecord['ssl_letsencrypt'] == 'y') {
1344+
if(isset($this->dataRecord['ssl_letsencrypt']) && $this->dataRecord['ssl_letsencrypt'] == 'y' && isset($this->dataRecord['ssl']) && $this->dataRecord['ssl'] == 'y') {
13451345
$this->dataRecord['ssl_letsencrypt'] = 'n';
1346+
$this->dataRecord['ssl'] = 'n';
13461347
$this->_letsencrypt_on_insert = true;
13471348
}
13481349
}
@@ -1422,6 +1423,7 @@ function onAfterInsert() {
14221423
if($this->_letsencrypt_on_insert == true) {
14231424
$tmp = $web_rec;
14241425
$tmp['ssl_letsencrypt'] = 'y';
1426+
$tmp['ssl'] = 'y';
14251427
$app->db->datalogUpdate('web_domain', $tmp, 'domain_id', $this->id);
14261428
unset($tmp);
14271429
}

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ function update($event_name, $data) {
932932
$tpl->newTemplate('nginx_vhost.conf.master');
933933

934934
// IPv4
935+
if($data['new']['ip_address'] == '') $data['new']['ip_address'] = '*';
935936

936937
//* use ip-mapping for web-mirror
937938
if($data['new']['ip_address'] != '*' && $conf['mirror_server_id'] > 0) {

0 commit comments

Comments
 (0)