read
Today I ran into an issue with Nginx. Nginx shuts down on me when I added a new virtual host. Upon checking the error log, I found this error:
could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
This means there was an issue with the nginx server name hashes.
The fix is quite simple. In the http directive in the nginx.conf file, locate server_names_hash_bucket_size
, enable it and increase the value to somehting like 128
http {
server_names_hash_bucket_size 128;
}
When you have done this. Restart nginx sudo service nginx restart
and you should be fine.
I'll love to hear from you
Do you want to say hello? Email me - celestineomin@gmail.com
I tweet at @cyberomin
If you enjoyed this post, please consider sharing it. comments powered by Disqus