location /static {
alias /home/projects/djphoto/djphoto/djphoto/static;
add_header Content-Disposition: 'attachment';
add_header Content-Type application/octet-stream;
}
nginx配置静态文件直接下载
最新推荐文章于 2024-06-13 08:34:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
location /static {
alias /home/projects/djphoto/djphoto/djphoto/static;
add_header Content-Disposition: 'attachment';
add_header Content-Type application/octet-stream;
}