ITeye博客

nginx配置错误信息

flyer2010 · 2012-08-08 10:29 · nginx · 企业架构 · Markdown

Nginx域名增多后,重启发现报如下错误:

[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{}段增加一行配置,如下:

http{
...
server_names_hash_bucket_size 64; 
...
}

如果继续报错,则按32的倍数继续调大。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。