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行:
nginx -t 可以发现问题已经解决了。
重启nginx(service nginx restart)即可。
[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)即可。
相关文章推荐
- nginx安装lua模块
- nginx rewrite 指令last break区别最详细的解释
- nginx windows No mapping for the Unicode character...
- Nginx的Rewrite正则表达式,匹配非某单词
- 在Nginx服务器中设置多个站点
- Linux(CentOS)系统下设置nginx开机自启动
- Nginx_handler模块发开(hello模块结构解析)
- 深入NGINX:我们如何设计它的性能和扩展性
- NGINX源代码剖析 之 CPU绑定(CPU亲和性)
- centos7 nginx安装
- nginx配置成服务
- 如何利用Nginx的缓冲、缓存优化提升性能
- Net分布式系统之三:Keepalived+LVS+Nginx负载均衡之高可用
- nginx gzip开启与配置
- Nginx学习笔记--Nginx图片缩略图,水印处理模块
- [Nginx 2] form表单提交,图片上传
- [Nginx 2] form表单提交,图片上传
- Nginx探索五
- Nginx服务器
- Nginx探索四