Error en NginX «could not build the server_names_hash, you should increase server_names_hash_bucket_size»

A veces puede ocurrir cuando ponemos muchos servidores en un NginX que nos saque este error:

[emerg] 12299#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 128
[emerg] 12299#0: the configuration file /etc/nginx/nginx.conf test failed

Este parametro ha de ser siempre un multiplo del tamaño de cache del procesador (core). El propio error te indica cuanto poner. En mi caso yo puse 128. Esta variable va en /etc/nginx/nginx.conf