nginx代理独立前端项目静态资源404
时间:2021-08-25 12:33:03
收藏:0
阅读:13
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
评论(0)