Download .apk/ipa files supported by apache/iis/nginxon the server

Source: Internet
Author: User

Now there are more and more users using android and apple, so the server does not support apk and iphone file downloads. We usually click to automatically save it as a zip or rarfile, next I will introduce how to configure apache/iis/nginxto support .apk file download.


The server iissupports. APK File Download settings

The iisserver cannot download the .apk file because no. APK file exists in the iis mime, so it cannot be downloaded.

The iisserver cannot download the .apk file. Solution: If .apk cannot be downloaded because it does not have MIME, you can add a MIME type.

Steps for iisserver to download the .apk file:

Open IIS Service Manager, find the server, right-click Properties, and open IIS service properties;
Click the "MIME type" button under the MIME type to open the MIME type setting window;
Click "new" to create a new MIME type;
",
In the MIME type field, enter the MIME type "application/vnd. android. package-archive" of the apk"

Click OK to save the settings.
Restart IIS to make the settings take effect.

Server apachesupports. APK File Download settings


In the conf/mime. types file in the Apache installation directory, add the following statement to specify the MIME type of the APK file as application/vnd. android. package-archive:

Application/vnd. android. package-archive apk;
 

Restart apache.


Server nginxsupports. APK File Download settings

Apk and. ipa are extensions of android apps and ios apps respectively.
 
If you download these files with the Suffix in your browser, they will be automatically renamed as zip files.
 
Of course, you can manually modify the suffix after downloading and install it.
 
If you want to download the suffix apk ipa, you can modify the mime. types in the/usr/local/nginx/conf directory.
 
Add the following configuration to restart nginx
 
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.