美文网首页
Nginx could not build server_nam

Nginx could not build server_nam

作者: WebProgress | 来源:发表于2020-02-14 11:49 被阅读0次

一、问题

could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

二、问题分析

Nginx默认的域名hash估值是32,当配置域名或二级域名过长时,将出现此问题。

三、解决

http {
    server_names_hash_bucket_size 64;
}

注意:hash 最大为:server_names_hash_max_size: 512

相关文章

网友评论

      本文标题:Nginx could not build server_nam

      本文链接:https://www.haomeiwen.com/subject/uallfhtx.html