suppose the local host file:
www.test.com 127.0.0.1
Local nginx.config file:
upstream www.test.com {
server 192.168.10.78:9003 weight=1;
}
upstream static.test.com {
server 127.0.0.1:8585 weight=1;
}
server {
listen 80;
server_name www.test.com;
location / {
proxy_pass http://www.test.com;
}
location =/ {
proxy_pass http://static.test.com;
}
}
what happens if I type www.test.com enter in my browser now?
1. Nginx is represented to http://192.168.10.78:9003;
2. Go host and be represented to 127.0.0.1
3. First, nginx is represented to http://www.test.com and then ho.
what happens if I type enter enter in the browser now?
I didn"t understand ngin very well, but now it"s even more messy with host; can anyone explain it? Or is my file wrong?