nginx 代理apk文件下载
server { listen 80; server_name app.com.cn; location /app { alias /var/www/app; autoindex on; default_type application/octet-stream; } }
alias 指定虚拟目录
autoindex on;打开目录浏览功能
default_type application/octet-stream;设置相应的MIME类型
当Url路径中包含/app/
时,MIME类型会被重置为application/octet-stream
标签:application,stream,apk,app,octet,nginx,页面 From: https://www.cnblogs.com/zhaoyingjie/p/18044973