文章内容

2021/4/28 18:27:56,作 者: 黄兵

could not build the server_names_hash, you should increase server_names_hash_bucket_size

再配置Nginx的时候出现了如下错误:

[emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size

出现问题的原因:

由于域名太长,很可能发生这种情况。

解决方案:

修改/etc/nginx/nginx.conf文件,再http区块的顶部,增加如下内容:

server_names_hash_bucket_size  64;


参考资料:

1、nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size

分享到:

发表评论

评论列表