报错信息
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
解决办法
在Nginx的http字段内添加如下代码,放大默认bucket_size
http {
server_names_hash_bucket_size 64;
…
}
加入server_names_hash_bucket_size 64;
这行问题,解决了。
暂时没有深入研究原因。