重啟nginx警告*hash_max_size,*hash_bucket_size
阿新 • • 發佈:2019-02-12
警告資訊如下:
Starting nginx: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
解決辦法:
編輯vim /etc/nginx/nginx.conf,在http裡面增加
proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;