Android file apk download Variable zip archive package Solution

Source: Internet
Author: User

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
    • Nginx
Steps/Methods
  1. 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.
  2. APK file Save type default is ZIP compression package
  3. Workaround
    VI /nginx installation directory/conf/mime.types add application/vnd.android.package-archiveapk;
  4. 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;
  5. Smooth restart Nginx
    /usr/local/ws/nginx/sbin/nginx-s Reload
  6. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.