# 必须配置此目录 location /upload { root D:\\upload\\; rewrite '^/upload(.*)$' $1 break; } 转载于:https://www.cnblogs.com/Leechg/p/10911987.html