Nginx configuration check show below warning:
# nginx -t
nginx: [warn] could not build optimal map_hash, you should increase either map_hash_max_size: 2048 or map_hash_bucket_size: 64; ignoring map_hash_bucket_size
This happens because default values for map_hash_bucket_size or map_hash_max_size are not enough.
To resolve the issue we have to add below directives to /etc/nginx/nginx.conf under http {} section:
map_hash_bucket_size 128;
or
map_hash_max_size 4096;