首页 > 代码库 > Nginx: could not build the server_names_hash 解决办法
Nginx: could not build the server_names_hash 解决办法
# /etc/init.d/nginx reload * Reloading nginx configuration nginx [fail]# nginx -tnginx: [emerg] could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64nginx: configuration file /etc/nginx/nginx.conf test failed# tail /var/log/nginx/error.log2015/01/28 10:21:51 [emerg] 22362#0: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
解决办法是在 nginx 配置文件的 http 段中增加如下配置:
# vi /etc/nginx/nginx.conf...http { ... server_names_hash_max_size 512; server_names_hash_bucket_size 128; ...}...
原文:http://www.vpsee.com/2015/02/nginx-could-not-build-the-server_names_hash/
Nginx: could not build the server_names_hash 解决办法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。