{listen 80;
Server_name www.123.com;
# charset koi8 - r;
# access_log/var/log/nginx/host access. Log the main;
The location/{
Root/usr/share/nginx/HTML;
Proxy_pass http://127.0.0.1:8088;
The index 1. HTML;
}
Host file modified domain mapping 192.168.1.7 www.123.com
When adding no proxy_pass can normal visit 192.168.1.7:80, as long as a plus access is another 404
There are bosses can help take a look at why
CodePudding user response:
The reverse proxy to remove the root and the indexCodePudding user response:
The location/{Root/usr/share/nginx/HTML;
The index 1. HTML;
}
The location/proxy {
Proxy_pass http://127.0.0.1:8088;
}