首页 > 其他 > 详细

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

时间:2016-06-24 20:41:25      阅读:1640      评论:0      收藏:0      [点我收藏+]

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错误,无法启动

原文:http://519137.blog.51cto.com/509137/1792651

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!