#前端页面代理
location / {
root html/h5;
index index.html index.htm;
}
#后端静态文件代理
location /age/static {
alias html/houtai/static;
index index.html index.htm;
}
#后端媒体文件代理
location /age/media {
alias html/houtai/media;
index index.html index.htm;
}
#后端接口代理/也可不使用,直接访问后端绝对地址
location /age/ {
proxy_pass http://127.0.0.1:8000/newpage/;
}
标签:index,htm,前后,代理,nginx,html,location,age From: https://www.cnblogs.com/hongdoudou/p/16854455.html