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;