您当前的位置: 首页 >  ui

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

nginx: [emerg] could not build server_names_hash

ITKEY_ 发布时间:2022-03-11 23:15:00 ,浏览量:0

报错信息

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

关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0411s