Nginx: could not build the server_names_hash 解决办法
2023-09-11 14:14:34 时间
# /etc/init.d/nginx reload * Reloading nginx configuration nginx [fail] # nginx -t nginx: [emerg] 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: configuration file /etc/nginx/nginx.conf test failed # tail /var/log/nginx/error.log 2015/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/
相关文章
- MacOS安装Eclipse后启动报错:The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
- Mysql 的异常:The last packet successfully received from the server was 90 milliseconds ago. The last packet sent successfully to the server was 43,603,303 milliseconds ago. is longer than the server con
- FastDFS整合Nginx的模块:fastdfs-nginx-module报错:fdfs_define.h:15:27: 致命错误:common_define.h:没有那个文件或目录
- 记录一次在生成数据库服务器上出现The timeout period elapsed prior to completion of the operation or the server is not responding.和Exception has been thrown by the target of an invocation的解决办法
- SQL SERVER 的模糊查询 LIKE
- SQL SERVER 2005删除维护作业报错:The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id"
- ArcGIS Server 9.3集群部署(多som+多soc)
- nginx 多个 server_name 如何匹配?
- Nginx深入使用-服务器名称(server_name)规则
- VIEW SERVER STATE permission was denied on object 'server', database 'master'
- Nginx配置文件(nginx.conf)配置详解
- loadrunner11错误:Error -27776: Server "wsg.cmszmail.ad" shut connection during attempt to negotiate SSL session [MsgId: MERR-27776]解决办法
- SQL Server数据库多种方式查找重复记录
- Sql Server 查询表中各列名称、表中列数
- SQL SERVER服务器链接连接(即sql server的跨库连接)
- 即时通讯工具:Output Messenger Server
- Eclipse 中侧边栏、控制台、Server打不开怎么办?
- Sql Server 2008 R2 激活密钥
- 【K3s】第25篇 解决The connection to the server localhost:8080 was refused
- 项目主干分支的server.sh被“覆盖”了?一个配置,解除烦恼
- C# 连接SQL Server数据库的几种方式--server+data source等方式
- Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config.
- creating server tcp listening socket 127.0.0.1:6379: bind No error
- 0402-服务注册与发现-Eureka Server使用、将服务注册到Eureka server上
- 问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?
- 编译Android VNC Server(pc远程控制android)(四十九)
- nginx源代码分析--高性能server开发 常见的流程模型
- SQL Server未找到或无法訪问server问题解决
- 【问题】4.Nginx之default_server问题
- Nginx(4):守护进程,一份nginx实现,一份我的实现,看着拿呗