示例文件1
E:\NGINX-TEST
├─a
│ a.html
│
├─b
│ b.html
│
└─c
c.html
示例文件2
E:\NGINX-TEST2
└─d
d.html
请求会在依次从文件夹a,b,c,d 下查扫直到找。 找到直接返回,找不到返回404
server {
listen 7006;
location / {
root E:/nginx-test/;
try_files /c/$uri /b/$uri /a/$uri $uri @fallback;
}
location @fallback {
root E:/nginx-test2/d/;
}
}