Home 技术笔记 Linux Nginx重启警: co...

Nginx重启警: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size

0

* Nginx重启警告

hash_max_size,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

两个的size根据自已系统后端发送的header来进行设置,最好不要设置默认值,否则会报错

  • 解决办法
    编辑vim /etc/nginx/nginx.conf,在http里面增加
proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

退出移动版