Today in the forum, found that a netizen said, "APK file has been downloaded into a compressed package", and the owner or webmaster's response is generally "after the ' *.zip ' changed to ' *.apk '" "and so on." Although this method is effective, it does not cure the root of the symptoms, but also the user experience and its bad. Today, I take everyone fundamentally to solve this problem, below I will demonstrate the next steps, other server software (I this is nginx) settings are similar. Tools/Materials
Steps/Methods
- Today in the forum, found that a netizen said, "APK file has been downloaded into a compressed package", and the owner or webmaster's response is generally "after the ' *.zip ' changed to ' *.apk '" "and so on." Although this method is effective, it does not cure the root of the symptoms, but also the user experience and its bad. Today, I take everyone fundamentally to solve this problem, below I will demonstrate the next steps, other server software (I this is nginx) settings are similar.
- APK file Save type default is ZIP compression package
- Workaround
VI /nginx installation directory/conf/mime.types add application/vnd.android.package-archiveapk;
- Location is random, probably as follows
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;
- Smooth restart Nginx
/usr/local/ws/nginx/sbin/nginx-s Reload
- All right, settle down! END
Precautions
- Remember to restart Nginx, otherwise it will not take effect.
Transfer from http://jingyan.baidu.com/article/1709ad80cc29dd4635c4f072.html
Android file apk download Variable zip archive package Solution