Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
Created June 12, 2014 22:09
Show Gist options
  • Save vladimir-e/d2d5be1bbbdced19365f to your computer and use it in GitHub Desktop.
Save vladimir-e/d2d5be1bbbdced19365f to your computer and use it in GitHub Desktop.
nginx error digitalocean when adding second virtual host
sudo service nginx configtest
* Testing nginx configuration [fail]
sudo nginx -t
nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
server_names_hash_bucket_size = 64
sudo service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment