---
title: "nginx配置错误信息"
author: "flyer2010"
date: "2012-08-08T10:29:37Z"
tags: []
categories: ["企业架构"]
slug: "nginx"
draft: false
lastmod: "2012-08-08T10:43:28Z"
id: 1624826
url: "https://flyer2010.iteye.com/blog/1624826"
---

Nginx域名增多后，重启发现报如下错误：

```java
[emerg] 4244#4408: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
```


Solution:
E:\nginx-1.2.0\conf\nginx.conf，在http{}段增加一行配置，如下：

```java
http{
...
server_names_hash_bucket_size 64; 
...
}
```

如果继续报错，则按32的倍数继续调大。