diff --git a/app/bot.php b/app/bot.php index a5318f1..f2c8117 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1402,7 +1402,7 @@ class Bot $conf = $this->getPacConf(); $conf['domain'] = idn_to_ascii($domain); $nginx = file_get_contents('/config/nginx.conf'); - $t = preg_replace('/server_name([^\n]+)?/', "server_name {$conf['domain']};", $nginx); + $t = preg_replace('/server_name ([^\n]+)?/', "server_name {$conf['domain']};", $nginx); preg_match_all('~#-domain.+?#-domain~s', $t, $m); foreach ($m[0] as $k => $v) { $t = preg_replace('~#-domain.+?#-domain~s', $this->uncomment($v, 'domain'), $t, 1); diff --git a/config/nginx.conf b/config/nginx.conf index 5a0b845..bf8e1af 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -9,6 +9,7 @@ events { } http { + server_names_hash_bucket_size 64; include include.conf; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/config/nginx_default.conf b/config/nginx_default.conf index 5a0b845..bf8e1af 100644 --- a/config/nginx_default.conf +++ b/config/nginx_default.conf @@ -9,6 +9,7 @@ events { } http { + server_names_hash_bucket_size 64; include include.conf; include /etc/nginx/mime.types; default_type application/octet-stream;