想要实现一个域名连接到不同的网页
xxxx.com (跳转到sharedlab/index.html)
xxxx.com/ai (跳转到ai/index.html)
在server里面配置两个location
location / {
root html/sharedlab/;
index index.html index.htm;
}
location / {
alias html/ai/;
#alias的末尾用/结尾;root的末尾不需要/结尾;
index index.html index.htm;
}