问题描述
nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
nginx: [warn] could not build optimal server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64; ignoring server_names_hash_bucket_size
解决方案
修改 /etc/nginx/nginx.conf
配置中的server_names_hash_bucket_size
项:
server_names_hash_bucket_size 128;
sudo service nginx restart
sudo /usr/sbin/nginx -s reload