server_names_hash, you should increase server_names_hash_bucket_size

I was trying to start fresh installation of nginx, but nginx wasn’t staring….

We must always read the logs!

[email protected]:/etc/nginx/sites-enabled# tail -f /var/log/nginx/error.log

This was I was getting on it…

2013/11/17 10:56:34 [emerg] 12362#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

Easy! I searched for server_names_hash_bucket_size on  /etc/nginx/nginx.conf and uncommented that line…

 

Leave a Reply

Your email address will not be published. Required fields are marked *


*