网站服务器增加如:3gp,torrent等特殊后缀格式文件下载

网站服务器增加如:3gp,torrent等特殊后缀格式文件下载

做一些比如QQ表情啊,BT种子下载的网站的时候,上传了这些文件的格式发现找不到?

原因是:这些特殊的格式默认情况下服务器不支持这些格式的文件下载,所以会造成此类的问题。我们只要把这些格式的扩展名加到服务器的IIS上即可解决

操作方法:

找开IIS管理器,选择你要设置的站点,右键,属性,HTTP头,MIME类型,新建,如:扩展名填“.flv”,类型(MIME)填“flv-application/octet-stream” ,点确认即可。添加需要的扩展名后点确认保存,其他扩展名也是一样的添加方法。

MIME类型大全

  格式前面为后辍名,后面为对应的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

  eri image/x-eri

  es audio/echospeech

  esl audio/echospeech