??????? 今天在泡论坛的时候,发现有网友说“APK文件下载之后变成了压缩包“,而斑竹或站长的回应一般都是”把后'*.zip'改成'*.apk'"“等。虽然说这方法有效,但治标不治本,而且对用户的体验及其不好。今天,我带着大家从根本上来解决这个问题,下面我将演示下操作步骤,其它服务器软件(我这是Nginx)设置也都大同小异。
打开 http://www.lingdus.com/www.scbdqn.com.htmlAPK文件保存类型默认是ZIP压缩包
解决方法
vi /Nginx安装目录/conf/mime.types 添加 application/vnd.android.package-archive???? apk;
位置随意,大概如下
??? application/x-redhat-package-manager? rpm;
??? application/x-sea???????????????????? sea;
??? application/x-shockwave-flash???????? swf;
??? application/x-stuffit???????????????? sit;
??? application/x-tcl???????????????????? tcl tk;
??? application/x-x509-ca-cert??????????? der pem crt;
??? application/x-xpinstall?????????????? xpi;
??? application/zip?????????????????????? zip;
???application/vnd.android.package-archive???? apk;
平滑重启 Nginx
/usr/local/ws/nginx/sbin/nginx -s reload
好了,解决咯!
?
本文转自北大青鸟成都锦江校区,原文链接http://www.scbdqn.com/course/mobile/3148.html