0
点赞
收藏
分享

微信扫一扫

nginx: [emerg] could not build server_names_hash

若如初梘 2022-03-12 阅读 76
nginx

报错信息

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;这行问题,解决了。

暂时没有深入研究原因。

参考:
https://www.cnblogs.com/zouhong/p/12270193.html

举报

相关推荐

Could not build module “xxxx”

0 条评论