I have the following virtual host
server { server_name abc.example.com; root /var/www/test/; index index.html; }
When running nginx -s reload
I get the following error:
nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
Same happens for any server_name that has 15 or more characters.
If I set the server_name to ab.example.com
(or any name under 15 characters) the problem stops manifesting.
To fix this I added the following to /etc/nginx/nginx.conf
(it wasn't defined before):
server_names_hash_bucket_size 64;
Setting it to 33 worked as well, but not 32.
Why is the default maximum length 14 characters for server_name?
Is this limit imposed by nginx's default settings or by the system it runs on?
How does a server_name of 15 affect the maximum hash bucket size? (there are only 4 virtual hosts defined on the system)
grep "" /sys/devices/system/cpu/cpu?/cache/index?/coherency_line_size
?/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size:64
/sys/devices/system/cpu/cpu0/cache/index1/coherency_line_size:64
/sys/devices/system/cpu/cpu0/cache/index2/coherency_line_size:64