How does nginxdownload the .ipaor .apk file?

Source: Internet
Author: User

Recently, many android and iphone applications have been added for download after app Image moderation is launched, but a problem is found: When you use nginx to download the .ipaor .apk file, the following problems may occur: when the Internet browser downloads the file, the current extension name is changed to .zip; however, if you use Firefox to download a file, a stream will appear, that is, the file will not be downloaded, but it will be browsed in garbled form. Obviously, this is not what we want.
Next, let's take a look at the various types of file headers in conf/mime. types in nginx:

text/vnd.sun.j2me.app-descriptor      jad;   application/java-archive              jar war ear;   application/x-java-archive-diff       jardiff;   application/vnd.android.package-archive apk;   application/vnd.ms-cab-compressed     cab;   application/octet-stream              bin exe dll;   application/vnd.symbian.install       sis;   x-epoc/x-sisx-app                     sisx;   application/iphone                    pxl ipa;   application/vnd.palm                  prc pdb;   application/vnd.webos.ipk             ipk;   application/vnd.rim.cod               cod;   application/mrp                       mrp;   x-nokia-widget                        wgz;   application/octet-stream              deb;  

Currently, When you download .apk and. ipa files in multiple regions, the files are automatically changed to the zip suffix after being downloaded in the IE browser, resulting in unavailability. You only need to add them to the nginx conf/mime. typs

application/vnd.android.package-archive apk;   application/iphone          pxl ipa;  

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.