could not build the server_names_hash

Igor Sysoev is at
Sat Mar 24 10:47:22 MSK 2007

On Fri, Mar 23, 2007 at 11:50:49PM -0700, Matt Lyon wrote:

> hello, long-time listener, first-time caller
> anyway, my vps went down for a bit today, and when it came up, nginx  
> refused to come up with it.
> Running with -t on the config file gets me this:
> 2007/03/23 23:46:15 [emerg] 4532#0: could not build the  
> server_names_hash, you should increase server_names_hash_bucket_size: 32
> I don't see anything in the wiki about this. Does anyone know what's up?
> My config hadn't changed since the last time it was started before.

http {
    server_names_hash_bucket_size   64;

Probably, you have no server_name in some virtual host and nginx uses
hostname. It seems that hostname had increased since the last reconfiguration.

Igor Sysoev

More information about the nginx mailing list