could not build theproxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512or proxy_headers_hash_bucket_size: 64 解决 OpenResty

nginx -t报警告如下:

[emerg]: could not build theproxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512or proxy_headers_hash_bucket_size: 64

 
修改nginx.conf,在http段中加如下面2行:

http{
   ......
   proxy_headers_hash_max_size 51200;
   proxy_headers_hash_bucket_size 6400;
   ....
}

 


nginx -t 可以发现问题已经解决了。

重启nginx(service nginx restart)即可。

nginx报could not build theproxy_headers_hash错误,无法启动

posted @ 2022-01-24 21:31  锐洋智能  阅读(760)  评论(0编辑  收藏  举报