Nginx教程

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

本文主要是介绍解决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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!