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;