IIS如何增加处理不同的文件扩展名(MIME类型)?

2024-04-30    分类: 网站建设

常见文件http中content-type头值(MIME类型)

方法如下:IIS -> 网站 -> 属性 ->HTTP头 -> MIME类型 -> 新建 扩展名:.jst / MIME类型:text/html -> 确定

常见文件http中content-type头值(MIME类型)

.ppt - application/mspowerpoint

.ai - application/postscript

.aif - audio/x-aiff

.aifc - audio/x-aiff

.aiff - audio/x-aiff

.asc - text/plain

.au - audio/basic

.avi - video/x-msvideo

.bcpio - application/x-bcpio

.bin - application/octet-stream

.c - text/plain

.cc - text/plain

.ccad - application/clariscad

.cdf - application/x-netcdf

.class - application/octet-stream

.cpio - application/x-cpio

.cpt - application/mac-compactpro

.csh - application/x-csh

.css - text/css

.dcr - application/x-director

.dir - application/x-director

.dms - application/octet-stream

.doc - application/msword

.drw - application/drafting

.dvi - application/x-dvi

.dwg - application/acad

.dxf - application/dxf

.dxr - application/x-director

.eps - application/postscript

.etx - text/x-setext

.exe - application/octet-stream

.ez - application/andrew-inset

.f - text/plain

.f90 - text/plain

.fli - src="/upload/pic22/p>

.gif - image/gif

.gtar - application/x-gtar

.gz - application/x-gzip

.h - text/plain

.hdf - application/x-hdf

.hh - text/plain

.hqx - application/mac-binhex40

.htm - text/html

.html - text/html

.ice - x-conference/x-cooltalk

.ief - image/ief .iges - model/iges

.igs - model/iges .ips - application/x-ipscript

.ipx - application/x-ipix

.jpe - src="/upload/pic22/p>

.jpeg - src="/upload/pic22/p>

.jpg - image/jpeg

.js - application/x-javascript

.kar - audio/midi

.latex - application/x-latex

.lha - application/octet-stream

.lsp - application/x-lisp

.lzh - application/octet-stream

.m - text/plain

.man - application/x-troff-man

.me - application/x-troff-me

.mesh - model/mesh .mid - audio/midi

.midi - audio/midi

.mif - application/vnd.mif

.mime - www/mime .mov - video/quicktime .movie - video/x-sgi-movie .mp2 - audio/mpeg .mp3 - audio/mpeg .mpe - video/mpeg .mpeg - video/mpeg .mpg - video/mpeg .mpga - audio/mpeg .ms - application/x-troff-ms .msh - model/mesh .nc - application/x-netcdf .oda - application/oda .pbm - image/x-portable-bitmap .pdb - chemical/x-pdb .pdf - application/pdf .pgm - image/x-portable-graymap .pgn - application/x-chess-pgn .png - image/png .pnm - image/x-portable-anymap .pot - application/mspowerpoint .ppm - image/x-portable-pixmap .pps - application/mspowerpoint .ppt - application/mspowerpoint .ppz - application/mspowerpoint .pre - application/x-freelance .prt - application/pro_eng .ps - application/postscript .qt - video/quicktime .ra - audio/x-realaudio .ram - audio/x-pn-realaudio .ras - image/cmu-raster .rgb - image/x-rgb .rm - audio/x-pn-realaudio .roff - application/x-troff .rpm - audio/x-pn-realaudio-plugin .rtf - text/rtf .rtx - text/richtext .scm - application/x-lotusscreencam .set - application/set .sgm - text/sgml .sgml - text/sgml .sh - application/x-sh .shar - application/x-shar .silo - model/mesh .sit - application/x-stuffit .skd - application/x-koan .skm - application/x-koan .skp - application/x-koan .skt - application/x-koan .smi - application/smil .smil - application/smil .snd - audio/basic .sol - application/solids .spl - application/x-futuresplash .src - application/x-wais-source

.step - application/STEP

.stl - application/SLA

.stp - application/STEP

.sv4cpio - application/x-sv4cpio

.sv4crc - application/x-sv4crc

.swf - application/x-shockwave-flash .t - application/x-troff .tar - application/x-tar .tcl - application/x-tcl .tex - application/x-tex .texi - application/x-texinfo .texinfo - application/x-texinfo .tif - image/tiff .tiff - image/tiff .tr - application/x-troff .tsi - audio/TSP-audio .tsp - application/dsptype .tsv - text/tab-separated-values .txt - text/plain .unv - application/i-deas .ustar - application/x-ustar .vcd - application/x-cdlink .vda - application/vda .viv - video/vnd.vivo .vivo - video/vnd.vivo .vrml - model/vrml .wav - audio/x-wav .wrl - model/vrml .xbm - image/x-xbitmap .xlc - application/vnd.ms-excel .xll - application/vnd.ms-excel .xlm - application/vnd.ms-excel .xls - application/vnd.ms-excel .xlw - application/vnd.ms-excel .xml - text/xml .xpm - image/x-xpixmap .xwd - image/x-xwindowdump .xyz - chemical/x-pdb .zip - application/zip. ---------------------------------------------------------------------------------------- IIS6的MIME类型设置由于 IIS6 默认没有添加上一些 MIME ,在下载这些文件时会提示找不到文件,所以要手动添加上去,而且还要在IIS中,进入网站的属性,把主目录里面的执行权限设置成纯脚本。 Mime-Types(mime类型)Dateiendung(扩展名) Bedeutung application/msexcel *.xls *.xla Microsoft Excel Dateien application/mshelp*.hlp *.chm Microsoft Windows Hilfe Dateien application/mspowerpoint*.ppt *.ppz *.pps *.pot Microsoft Powerpoint Dateien application/msword *.doc *.dot Microsoft Word Dateien application/octet-stream*.exeexe application/pdf *.pdf Adobe PDF-Dateien application/postscript*.ai *.eps *.ps Adobe Postscript-Dateien application/rtf*.rtf Microsoft RTF-Dateien application/x-httpd-php *.php *.phtml PHP-Dateien application/x-javascript*.js serverseitige JavaScript-Dateien application/x-shockwave-flash*.swf *.cab Flash Shockwave-Dateien application/zip *.zip ZIP-Archivdateien audio/basic *.au *.snd Sound-Dateien audio/mpeg*.mp3 MPEG-Dateien audio/x-midi*.mid *.midi MIDI-Dateien audio/x-mpeg *.mp2 MPEG-Dateien audio/x-wav *.wav Wav-Dateien image/gif src="/upload/pic22/ GIF-Dateien src="/upload/pic22/jpeg*.jpeg src="/upload/pic22/ *.jpe JPEG-Dateien image/x-windowdump *.xwd X-Windows Dump text/css*.css CSS Stylesheet-Dateien text/html*.htm *.html *.shtml -Dateien text/javascript *.js JavaScript-Dateien text/plain *.txt reine Textdateien video/mpeg*.mpeg *.mpg *.mpe MPEG-Dateien video/vnd.rn-realvideo*.rmvbrealplay-Dateien video/quicktime *.qt *.mov Quicktime-Dateien video/vnd.vivo *viv *.vivo Vivo-Dateien ---------------------------------------------------------------------------------------- IIS WAP服务器的MIME类型配置 如何让手机访问WAP网站服务器? 这其实只需要一部支持wap的手机,一台电脑,一个网关(是硬件,一般由电信服务商提供)就能够了,网关能够临时用电信的,所以您只需要有手机和电脑就能够了。 下载型WAP服务器 .amr audio/amr .pmdaudio/pmd .3gp video/3gpp .cab application/vnd.smartpohone .gif image/gif .hme application/vnd.smartphone.thm .jad text/vnd.sun.j2me.app-descriptor .jar application/java-archive .jpg image/jpeg .mid audio/midi .mp3 audio/x-mpeg .mp4 video/mp4 .ogg application/ogg .pdb application/ebook .rm video/rm .rng application/vnd.nokia.ringing-tone .sdt application/vnd.sie.thm .sis application/vnd.symbian.install .thm application/vnd.eri.thm .tsk application/vnd.ppc.thm .umd application/umd .utz application/vnd.uiq.thm .wav audio/x-wav .wbmp image/vnd.wap.wbmp .wml text/vnd.wap.wml .wmlc application/vnd.wap.wmlc .wmls text/vnd.wap.wmlscript .wmlsc application/vnd.wap.wmlscriptc .wmv video/x-ms-wmv .wsc application/vnd.wap/wmlscriptc ---------------------------------------------------------------------------------------- 一般WAP服务器 .wbmp image/vnd.wap.wbmp .wml text/vnd.wap.wml .wmlc application/vnd.wap.wmlc .wmls text/vnd.wap.wmlscript .wmlsc application/vnd.wap.wmlscriptc .wmv video/x-ms-wmv .wsc application/vnd.wap/wmlscriptc .gif image/gif .jpg image/jpeg .bmp image/bmp

本文题目:IIS如何增加处理不同的文件扩展名(MIME类型)?
分享路径:https://www.cdcxhl.com/news33/327033.html

成都网站建设公司_创新互联,为您提供静态网站标签优化服务器托管商城网站响应式网站动态网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

网站优化排名