解决nginx:nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_buck

步骤,给nginx.conf 配置了 server_name www.testtravel.com;
报错 nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

解决办法在http中添加一行:
server_names_hash_bucket_size 64;
如果64还不够,那么就按32的倍数往上加。

示例:
解决nginx:nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_buck

上一篇:2021-06-18


下一篇:Java一维数组