添加win服务器上的mime,让.apk包可正常下载的设置方法
发表于:2015-02-12 17:37:24

  随着智能手机的普及,越来越多的人使用手机上网,很多网站也应手机上网的需求推出了手机APP开发应用客户端,.apk文件就是安卓(Android)的应用程序后缀名,默认情况下,使用IIS作为Web服务器的无法下载此文件,那么怎么才能让IIS支持.apk文件的下载。

  首先,我们要了解IIS服务器不能下载.apk文件的原因:iis的默认MIME类型中没有.apk文件,所以无法下载。

  其次,IIS服务器不能下载.apk文件的解决办法:既然.apk无法下载是因为没有MIME,那么我们就添加一个MIME类型。

  IIS服务器不能下载.apk文件的解决步骤:

  第一步:打开IIS服务管理器,找到服务器,右键-属性,打开IIS服务属性;

  第二步:单击MIME类型下的“MIME类型”按钮,打开MIME类型设置窗口;

 

  第三步:单击“新建”,建立新的MIME类型;

  第四步:扩展名中填写“.apk”,

  MIME类型中填写apk的MIME类型“ application/octet-stream ”

  第五步:单击“确定”保存设置,重启IIS,使设置生效。

  现在使用IIS服务器的网站就可以下载.apk文件了。

  用于WAP 服务器的MIME类型有:

  MRP文件(国内普遍的手机) .mrp application/octet-stream

  IPA文件(IPHONE) .ipa application/iphone-package-archive

  .deb application/x-debian-package-archive

  APK文件(安卓系统) .apk application/vnd.android-package-archive

  CAB文件(Windows Mobile) .cab application/vnd.cab-com-archive

  XAP文件(Windows Phone 7) .xap application/x-silverlight-app

  SIS文件(symbian平台/S60V1) .sis application/vnd.symbian.install-archive *(下有)

  SISX文件(symbian平台/S60V3/V5) .sisx application/vnd.symbian.epoc/x-sisx-app

  JAR、JAD文件(JAVA平台手机通用格式) .jar .jad下面有

  格式前面为后辍名,后面为对应的MIME型(例如:rar application/x-rar-compressed 表示.RAR对应的是application/x-rar-compressed )

  application/vnd.lotus-1-2-3

  3gp video/3gpp

  aab application/x-authoware-bin

  aam application/x-authoware-map

  aas application/x-authoware-seg

  ai application/postscript

  aif audio/x-aiff

  aifc audio/x-aiff

  aiff audio/x-aiff

  als audio/X-Alpha5

  amc application/x-mpeg

  ani application/octet-stream

  asc text/plain

  asd application/astound

  asf video/x-ms-asf

  asn application/astound

  asp application/x-asap

  asx video/x-ms-asf

  au audio/basic

  avb application/octet-stream

  avi video/x-msvideo

  awb audio/amr-wb

  bcpio application/x-bcpio

  bin application/octet-stream

  bld application/bld

  bld2 application/bld2

  bmp application/x-MS-bmp

  bpk application/octet-stream

  bz2 application/x-bzip2

  cal image/x-cals

  ccn application/x-cnc

  cco application/x-cocoa

  cdf application/x-netcdf

  cgi magnus-internal/cgi

  chat application/x-chat

  class application/octet-stream

  clp application/x-msclip

  cmx application/x-cmx

  co application/x-cult3d-object

  cod image/cis-cod

  cpio application/x-cpio

  cpt application/mac-compactpro

  crd application/x-mscardfile

  csh application/x-csh

  csm chemical/x-csml

  csml chemical/x-csml

  css text/css

  cur application/octet-stream

  dcm x-lml/x-evm

  dcr application/x-director

  dcx image/x-dcx

  dhtml text/html

  dir application/x-director

  dll application/octet-stream

  dmg application/octet-stream

  dms application/octet-stream

  doc application/msword

  dot application/x-dot

  dvi application/x-dvi

  dwf drawing/x-dwf

  dwg application/x-AutoCAD

  dxf application/x-autocad

  dxr application/x-director

  ebk application/x-expandedbook

  emb chemical/x-embl-dl-nucleotide

  embl chemical/x-embl-dl-nucleotide

  eps application/postscript

  epub application/epub+zip

  eri image/x-eri

  es audio/echospeech

  esl audio/echospeech

  etc application/x-earthtime

  etx text/x-setext

  evm x-lml/x-evm

  evy application/x-envoy

  exe application/octet-stream

  fh4 image/x-freehand

  fh5 image/x-freehand

  fhc image/x-freehand

  fif image/fif

  fm application/x-maker

  fpx image/x-fpx

  fvi video/isivideo

  gau chemical/x-gaussian-input

  gca application/x-gca-compressed

  gdb x-lml/x-gdb

  gif image/gif

  gps application/x-gps

  gtar application/x-gtar

  gz application/x-gzip

  hdf application/x-hdf

  hdm text/x-hdml

  hdml text/x-hdml

  hlp application/winhlp

  hqx application/mac-binhex40

  htm text/html

  html text/html

  hts text/html

  ice x-conference/x-cooltalk

  ico application/octet-stream

  ief image/ief

  ifm image/gif

  ifs image/ifs

  imy audio/melody

  ins application/x-NET-Install

  ips application/x-ipscript

  ipx application/x-ipix

  it audio/x-mod

  itz audio/x-mod

  ivr i-world/i-vrml

  j2k image/j2k

  jad text/vnd.sun.j2me.app-descriptor

  jam application/x-jam

  jar application/java-archive

  jnlp application/x-java-jnlp-file

  jpe image/jpeg

  jpeg image/jpeg

  jpg image/jpeg

  jpz image/jpeg

  js application/x-javascript

  jwc application/jwc

  kjx application/x-kjx

  lak x-lml/x-lak

  latex application/x-latex

  lcc application/fastman

  lcl application/x-digitalloca

  lcr application/x-digitalloca

  lgh application/lgh

  lha application/octet-stream

  lml x-lml/x-lml

  lmlpack x-lml/x-lmlpack

  lsf video/x-ms-asf

  lsx video/x-ms-asf

  lzh application/x-lzh

  m13 application/x-msmediaview

  m14 application/x-msmediaview

  m15 audio/x-mod

  m3u audio/x-mpegurl

  m3url audio/x-mpegurl

  ma1 audio/ma1

  ma2 audio/ma2

  ma3 audio/ma3

  ma5 audio/ma5

  man application/x-troff-man

  map magnus-internal/imagemap

  mbd application/mbedlet

  mct application/x-mascot

  mdb application/x-msaccess

  mdz audio/x-mod

  me application/x-troff-me

  mel text/x-vmel

  mi application/x-mif

  mid audio/midi

  midi audio/midi

  mif application/x-mif

  mil image/x-cals

  mio audio/x-mio

  mmf application/x-skt-lbs

  mng video/x-mng

  mny application/x-msmoney

  moc application/x-mocha

  mocha application/x-mocha

  mod audio/x-mod

  mof application/x-yumekara

  mol chemical/x-mdl-molfile

  mop chemical/x-mopac-input

  mov video/quicktime

  movie video/x-sgi-movie

  mp2 audio/x-mpeg

  mp3 audio/x-mpeg

  mp4 video/mp4

  mpc application/vnd.mpohun.certificate

  mpe video/mpeg

  mpeg video/mpeg

  mpg video/mpeg

声明:文章“添加win服务器上的mime,让.apk包可正常下载的设置方法”为澳环科技原创文章,转载请注明出处,谢谢合作!

上一页:kx版团购网基础功能说明

下一页:支付宝移动支付RSA公钥生成步骤

我们能给的,远比您想的更多

服务于上市公司及500强等知名企业

400-990-6366