Let server Apache/iis/nginx support. apk/ipa File Download
Source: Internet
Author: User
Server IIS supports the settings of downloading. APK files
Reason that IIS server cannot download. APK file: the default MIME type of IIS does not have. APK file, so it cannot be downloaded.
IIS server can't download. APK file solution: since. APK can't download because there is no mime, then add a MIME type.
Solution steps for IIS server unable to download. APK file:
Open IIS service manager, find the server, right-click properties, open IIS service properties;
Click the "MIME type" button under MIME type to open the MIME type setting window;
Click new to create a new MIME type;
Fill in ". APK" in extension,
Fill in the MIME type "application / vnd. Android. Package archive" of APK in the MIME type
Click OK to save the settings.
Restart IIS for the settings to take effect.
Server Apache supports. APK file download settings
Add the following line to the corresponding location of conf / mime.types file in the Apache installation directory, and specify that the MIME type of APK file is application / vnd.android.package-archive
application/vnd.android.package-archive apk;
Just restart Apache
Server nginx supports. APK file download settings
Apk and. IPA are the extensions of Android application and IOS application respectively.
If you download files with suffixes in your browser, they are automatically renamed to zip files.
Of course, you can manually modify the suffix after downloading and still install it.
If you want to download the suffix directly from APK IPA, you can modify mime.types in the directory / usr / local / nginx / conf
Add the following configuration and restart nginx to take effect
application/vnd.android.package-archive apk;
application/iphone pxl ipa;
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.