您的位置:首页 > 运维架构 > Nginx

nginx -t 提示proxy_headers_hash_max_size警告的解决方法

2016-04-12 11:30 513 查看
nginx -t报警告如下:
[emerg]: could not build the proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or 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)即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: