nginx 配置
location /www{ alias /www; internal; }
测试下载 /?explorer/index/fileOut&path={io:1}/202110/20_38674cc5/test&width=250&etag=1641461992 test修改为test.png (服务器也同步重命名) 无法下载 test.png 修改为 test nginx能返回文件 不知道为什么 求救
测试为下方代码覆盖 location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log off; access_log /dev/null; }
可是这种情况怎么不处理这个呢 下载后了就不管这里了 或者兼容
添加 ^~ 增加匹配优先级 修复完成
^~
location ^~ /www{ alias /www; internal; }