How to fix [emerg]: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 64

Valic —  January 5, 2013 — Leave a comment

This error usually appear when you test the nginx configuration.

If you want to fix this nginx error [emerg]: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 64

Just add the following in your nginx.conf file:

http {
server_names_hash_max_size 512;
server_names_hash_bucket_size 128;

...
}

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

No Comments

Be the first to start the conversation.

Leave a Reply