Linux > Plesk

Nginx warning: could not build optimal map_hash

(1/1)

vichithrakumart:
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:


--- Code: ---map_hash_bucket_size 128;
--- End code ---

or


--- Code: ---map_hash_max_size 4096;
--- End code ---

Navigation

[0] Message Index

Go to full version