Nginx :proxy_headers_hash_max_size 解決方法

Nginx錯誤
[emerg]: could not build the proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 22

修改nginx.conf,在http段中加入:

proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;

測試結果:

nginx -t
service nginx restart
THE END
分享
二维码
< <上一篇
下一篇>>