最新消息:Kglan,陈升智

SSL 证书 重启nginx警告*hash_max_size,*hash_bucket_size

nginx admin 90浏览

重启nginx警告*hash_max_size,*hash_bucket_size

警告信息如下:

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
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

解决办法:

编辑vim /etc/nginx/nginx.conf,在http里面增加

proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;

转载请注明:Kglan » SSL 证书 重启nginx警告*hash_max_size,*hash_bucket_size