When executing .\nginx -s reload , it prompts: nginx:[emerg]Host not found in upstream “api.aims-api.localhost” in c:/nginx-1.10.1/conf/vhosts/aims.conf:14
1. When executing .\nginx -s reload, prompt: nginx:[emerg]host not found in upstream ‘api.aims-api.localhost’ in c:/nginx-1.10.1/conf/vhosts/aims.conf:14, as shown in Figure 1
![When executing .\nginx -s reload , it prompts: nginx:[emerg]host not found in upstream "api.aims-api.localhost" in c:/nginx-1.10.1/conf/vhosts/aims.conf:14](https://www.shuijingwanwq.com/wp-content/uploads/2018/10/1.png)
2. Check lines 13, 14, and 15 of c:/nginx-1.10.1/conf/vhosts/aims.conf
location /v1 {
proxy_pass http://api.aims-api.localhost/v1;
}
3. Check C:\Windows\System32\drivers\etc\hosts and find that 127.0.0.1 api.aims-api.localhost has been deleted because of the Windows 10 upgrade
192.168.118.2 windows10.microdone.cn
4. Overwrite the previously backed up hosts file to C:\Windows\System32\Drivers\etc\hosts, as shown in Figure 2

5. Execute: ipconfig /flushdns, refresh the dns parsing cache, as shown in Figure 3

ipconfig /flushdns
6. Execute: .\nginx -s reload, no error is reported, as shown in Figure 4

.\nginx -s reload
7. Check the process, nginx.exe already exists, as shown in Figure 5
