Nginx域名增多后,重启发现报如下错误:
Solution:
E:\nginx-1.2.0\conf\nginx.conf,在http{}段增加一行配置,如下:
如果继续报错,则按32的倍数继续调大。
[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的倍数继续调大。