Under Windows 10, Nginx 1.10 reports an error after adding a virtual host: nginx:[emerg]Could not build server_names_hash
1. Edit the nginx.conf file and add a total of 5 virtual hosts, as shown in Figure 1:
2. Execute the command: nginx -s reload, reload, report an error, as shown in Figure 2:
Tips: nginx:[emerg]Could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
Translation: nginx:[emerg]Unable to build server_names_hash, should add server_names_hash_bucket_size: 32
![执行命令:nginx -s reload,重新加载,报错:nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32](https://www.shuijingwanwq.com/wp-content/uploads/2016/10/2.png)
Execute the command: nginx -s reload, reload, report an error: nginx:[emerg]Could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
SERVER_NAMES_HASH_BUCKET_SIZE: The length of the server name is limited because the name of one of the virtual hosts is:www.yii2-starter-kit.test

View the corresponding information on the official website, server_names_hash_bucket_size: server name length limit
4. Edit the nginx.conf file and set server_names_hash_bucket_size to 64, as shown in Figure 4:
5. Execute the command: nginx -s reload, reload, normal, as shown in Figure 5:


