nginx报警:nginx:[warn]couldnotbuildoptimalserver_names_hash,youshouldincreaseeitherserver_names_hash_max_size:512orserver_names_hash_bucket_size:64;ignoringserver_names_hash_bucket_size
来源:本站原创
点击数: 次
发布时间:2021年04月30日
问题描述:nginx报警:nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
问题分析:在http的部分添加hash缓冲值即可。
问题解决:编辑nginx主配置文件nginx.conf,如下图,添加报错的字段并定义值即可。