nginx[warn]could not build optimal proxyheadershash

3/31/2021 nginx

nginx

# 问题

nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
1

# 修改配置文件

proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 64; 
1
2

# 检查配置文件

sudo nginx -t 
1

# 热加载

sudo nginx -s reload
1
Last Updated: 4/10/2022, 8:00:19 PM