nginx代理独立前端项目静态资源404
1.根目录(/)访问
a.使用server_name,配置多域名
b.使用端口
2.非根目录(/path/index.html)
server {
listen 80;
server_name _;
location /path/{
proxy_pass http://targetIp:targetPort/path/;
}
}
1.根目录(/)访问
a.使用server_name,配置多域名
b.使用端口
2.非根目录(/path/index.html)
server {
listen 80;
server_name _;
location /path/{
proxy_pass http://targetIp:targetPort/path/;
}
}