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{
    server_names_hash_bucket_size 128; #设定值为32的倍数,由原来的64增加到128
    server_names_hash_max_size 512;
}