If, on the next nginx restart, it starts throwing the error
could not build the server_names_hash, you should increase server_names_hash_bucket_size
then, obviously, the server_names_hash variable holds a value lower than the current number of virtual server names configured in the nginx settings file.
To fix this: open the nginx.conf configuration file, find the "http {" block, and add the following line inside that block:
server_names_hash_bucket_size 64;
Instead of 64 - use whatever number you need.
For example, like this:
http {
...
server_names_hash_bucket_size 64;
...
}
After that, restart nginx.
Applies to: nginx
Comments