In Nginx environment, you may be experienced following error message saying you should have to increase server_names_hash_bucket_size.
This error is due to using large server_name which does not fit in the hash bucket. It is recommended to use small values as where as possible, because it can directly impact the web server performance as server_name is being looked up on every request. you can find setting up hashes from here.
Solution :- Add following line to nginx.conf
server_names_hash_bucket_size 64;
then test the nginx config, if it is success you can reload / restart Nginx.
#sudo nginx -t
#sudo nginx reload
2 comments
pauli
March 25, 2015 at 6:53 pm (UTC 5.5) Link to this comment
wow, this is really useful to me. 🙂
Vitor de Souza
October 30, 2021 at 8:21 pm (UTC 5.5) Link to this comment
In my case I had to change to 128.