server新增location节,内容:
location ^~/download/ {
alias d:/download/;
if ($request_filename ~* ^.*?\.(app|txt)$) {
add_header Content-Disposition attachment;
add_header Content-Type application/octet-stream;
}
sendfile on;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
charset utf-8,gbk;
}