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.
Tags: nginx








September 3rd, 2010 at 12:10 pm
Nice post.Thank you for taking the time to publish this information very useful!
I’m still waiting for some interesting thoughts from your side in your next post thanks