nginx配置
参考文档地址
Syntax: location [ = | ~ | ~* | ^~ ] uri { ... }
root
// 请求 /my -----> nginx/html/my/index.html
location /my {
root html;
index index.html;
}
alias
// 请求 /my -----> nginx /html/index.html
location /my {
alias html;
index index.html;
}
proxy
// 请求 /good -----> 指向 ip服务地址
location /good {
proxy_pass http://ip/;
}