nginx server_names_hash_bucket_size error

The error:

Starting nginx daemon: nginx2008/08/25 00:29:09 [emerg] 4011#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

The fix:

Within the http block of the nginx config file make sure you have the server_names_hash_bucket_size set higher than the minimum 32

something lik

http { server_names_hash_bucket_size 64;

}

explanation :

hash_max_size will control the
number of virtual host entries, while _hash_bucket_size will control
the maximum length of single entries
if you have a lot of virtual host entries, you should increase
hash_max_size, while I should increase hash_bucket_size if some
domain names are too long.
Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags:

Leave a Reply