The corresponding location of the Conf/mime.types file under the Apache installation directory, plus the following line of statements, specifies that the MIME type of the APK file is application/vnd.android.package-archive:
The code is as follows |
Copy Code |
Application/vnd.android.package-archive apk;
|
Restart Apache
How to share some other formatting additions
Found a MIME file and shared it with Mr. Zhang's place.
The following are the configuration of various file name suffixes in the mime.types of Nginx:
The code is as follows |
Copy Code |
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; |