1.根目录(/)访问
a.使用server_name,配置多域名
b.使用端口
2.非根目录(/path/index.html)
server {
listen 80;
server_name _;
location /path/{
proxy_pass http://targetIp:targetPort/path/;
}
}
原文:https://www.cnblogs.com/nexusHan/p/15178987.html