原文:【记录】Nginx错误could not build the server_names_hash you should increase server_names_hash_bucket_size: 32

今天遇到这个错误,现记录下解决方案: 在nginx的配置文件的http段中增加如下配置: server names hash bucket size 下面是nginx官方文档解释: 如果定义了大量名字,或者定义了非常长的名字,那可能需要在http配置块中使用server names hash max size和server names hash bucket size指令进行调整。server n ...

2019-08-30 18:07 0 441 推荐指数:

查看详情

nginx启动报错server_names_hash_bucket_size: 32

之前都好好的,这次换了个地方部署,同样的配置nginx启动却报错了 2020/12/07 23:41:58 [emerg] 1012#1012: could not build server_names_hash, you should increase ...

Mon Dec 07 19:00:00 CST 2020 0 851
nginx could not build the server_names_hash 解决方法

nginxnginx could not build the server_names_hash”解决方法 给一个服务器下增加了一些站点别名,差不多有20多个。 重启nginx时候,提示: could not build the server_names_hash, you should ...

Thu Jan 18 17:19:00 CST 2018 0 5844
nginx报错”could not build the server_names_hash

今天在给nginx添加几十个域名后,重启nginx的时候,报错”[emerg]: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 ...

Tue Jun 12 00:49:00 CST 2012 0 6921
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM