Nginx could not build the server_names_hash 解决方法
服务器名字的hash表是由指令 server_names_hash_max_size 和 server_names_hash_bucket_size所控制的。
错误提示:
1 | could not build the server_names_hash, you should increase server_names_hash_bucket_size: 64 |
在配置文件的http{}段增加一行配置
1 | server_names_hash_bucket_size 128; |
如果64还不够,那么就按32的倍数往上加。