NGINX WARNING : could not build optimal server_names_hash...
2024/01/19 12:22:38 [warn] 1476851#1476851: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
==========================
To fix this , you need to uncomment out the line server_names_hash_bucket_size 64; in /etc/nginx/nginx.conf file under http header.
Then do ,
nginx -t
nginx -s reload
If you still see the log , 2024/01/19 12:22:38 [warn] 1476851#1476851: could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
Increase the value of server_names_hash_bucket_size 64; to server_names_hash_bucket_size 128;
Then do ,
nginx -t
nginx -s reload
This line "server_names_hash_bucket_size" is available in /etc/nginx/nginx.conf file under http header.
Accordingly it should fix the problem.
Comments
Post a Comment