location /uploadFiles/ {
root D:/uploadPath/;
autoindex on;
}
请求:http://127.0.0.1/uploadFiles/marryTZImgs/20220503/c775f815c9744939b4e887166169881b.png
映射后: D:/uploadPath/uploadFiles/marryTZImgs/20220503/c775f815c9744939b4e887166169881b.png
location /other/ {
alias D:/file/upload;
expires 3d;
}