I’ve recently started switching my custom nginx installations to the Debian repository version.
So from 0.9.4 to 0.6.32 (Lenny), which will be upgraded to 0.7.x in Squeeze.
I’ve come across this error on certain servers:
# /etc/init.d/nginx restart Restarting nginx: 2011/02/11 11:34:58 [emerg] 3624#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 nginx.
This can be solved by adding this to the nginx.conf:
Be sure to place it between the http-section.