server_names_hash in nginx

Just a quickie if anyone else bangs into the error below when trying to start nginx..

could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

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. Have a look at the docs here. Example below..

http {
  server_names_hash_bucket_size 64;
}

April 07 2008 09:07 pm | Nginx

One Response to “server_names_hash in nginx”

  1. orion Engleton on 30 May 2008 at 12:18 pm #

    Thanks alot for this.. I probably would have spent another hour researching what this was.. with people like you out there and google.. I’m good to go!

Trackback URI | Comments RSS

Leave a Reply