GoDaddy虚拟主机中MIME类型的配置

godaddy提供的免费空间有强制广告,用来做下载站或图床是比较合适的-速度够快,不过默认情况下linux空间只能打开或下载.jpg格式的文件,其他文件打开是以文本格式,也无法下载,查了下资料,只要mime类型配置好,就可以和平时用的正常虚拟主机一样设置打开相应类型文件的程序了。

GoDaddy windows虚拟主机

配置的MIME类型以下MIME类型配置在GoDaddy windows虚拟主机上































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































文件扩展名文件类型 (MIME)
0.323text/h323
.aafapplication/octet-stream
.acaapplication/octet-stream
.acxapplication/internet-property-stream
.afmapplication/octet-stream
.aiapplication/postscript
.aifaudio/x-aiff
.aifcaudio/aiff
.aiffaudio/aiff
.applicatiapplication/x-ms-application
.artimage/x-jg
.asdapplication/octet-stream
.asfvideo/x-ms-asf
.asiapplication/octet-stream
.asmtext/plain
.asrvideo/x-ms-asf
.asxvideo/x-ms-asf
.auaudio/basic
.avivideo/x-msvideo
.axsapplication/olescript
.bastext/plain
.bcpioapplication/x-bcpio
.binapplication/octet-stream
.bmpimage/bmp
.ctext/plain
.cabapplication/octet-stream
.catapplication/vnd.ms-pki.seccat
.cdfapplication/x-cdf
.chmapplication/octet-stream
.classapplication/x-java-applet
.clpapplication/x-msclip
.cmximage/x-cmx
.cnftext/plain
.codimage/cis-cod
.cpioapplication/x-cpio
.cpptext/plain
.crdapplication/x-mscardfile
.crlapplication/pkix-crl
.crtapplication/x-x509-ca-cert
.cshapplication/x-csh
.csstext/css
.csvapplication/octet-stream
.curapplication/octet-stream
.dcrapplication/x-director
.deployapplication/octet-stream
.derapplication/x-x509-ca-cert
.dibimage/bmp
.dirapplication/x-director
.discotext/xml
.dllapplication/x-msdownload
.dlmtext/dlm
.docapplication/msword
.dotapplication/msword
.dspapplication/octet-stream
.dtdtext/xml
.dviapplication/x-dvi
.dwfdrawing/x-dwf
.dwpapplication/octet-stream
.dxrapplication/x-director
.easmapplication/octet-stream
.emlmessage/rfc822
.emzapplication/octet-stream
.eotapplication/octet-stream
.epsapplication/postscript
.etxtext/x-setext
.evyapplication/envoy
.ex_application/octet-stream
.exeapplication/octet-stream
.fdfapplication/vnd.fdf
.fifapplication/fractals
.flaapplication/octet-stream
.flrx-world/x-vrml
.gifimage/gif
.gtarapplication/x-gtar
.gzapplication/x-gzip
.htext/plain
.hdfapplication/x-hdf
.hdmltext/x-hdml
.hhcapplication/x-oleobject
.hhkapplication/octet-stream
.hhpapplication/octet-stream
.hlpapplication/winhlp
.hqxapplication/mac-binhex40
.hsfapplication/octet-stream
.htaapplication/hta
.htctext/x-component
.htmtext/html
.htmltext/html
.htttext/webviewhtml
.hxttext/html
.icaapplication/x-ica
.icoimage/x-icon
.icsapplication/octet-stream
.iefimage/ief
.iiiapplication/x-iphone
.infapplication/octet-stream
.insapplication/x-internet-signup
.ispapplication/x-internet-signup
.IVFvideo/x-ivf
.jarapplication/java-archive
.javaapplication/octet-stream
.jckapplication/liquidmotion
.jczapplication/liquidmotion
.jfifimage/pjpeg
.jpbapplication/octet-stream
.jpeimage/jpeg
.jpegimage/jpeg
.jpgimage/jpeg
.jsapplication/x-javascript
.latexapplication/x-latex
.litapplication/x-ms-reader
.lpkapplication/octet-stream
.lsfvideo/x-la-asf
.lsxvideo/x-la-asf
.lzhapplication/octet-stream
.m13application/x-msmediaview
.m14application/x-msmediaview
.m1vvideo/mpeg
.m3uaudio/x-mpegurl
.manapplication/x-troff-man
.manifestapplication/x-ms-manifest
.maptext/plain
.mdbapplication/x-msaccess
.mdpapplication/octet-stream
.meapplication/x-troff-me
.mhtmessage/rfc822
.mhtmlmessage/rfc822
.midaudio/mid
.midiaudio/mid
.mixapplication/octet-stream
.mmfapplication/x-smaf
.mnotext/xml
.mnyapplication/x-msmoney
.movvideo/quicktime
.movievideo/x-sgi-movie
.mp2video/mpeg
.mp3audio/mpeg
.mp4audio/mpeg
.mpavideo/mpeg
.mpevideo/mpeg
.mpegvideo/mpeg
.mpgvideo/mpeg
.mppapplication/vnd.ms-project
.mpv2video/mpeg
.msapplication/x-troff-ms
.msiapplication/octet-stream
.mvbapplication/x-msmediaview
.ncapplication/x-netcdf
.nscvideo/x-ms-asf
.nwsmessage/rfc822
.ocxapplication/octet-stream
.odaapplication/oda
.odsapplication/oleobject
.p10application/pkcs10
.p12application/x-pkcs12
.p7bapplication/x-pkcs7-certificates
.p7capplication/pkcs7-mime
.p7mapplication/pkcs7-mime
.p7rapplication/x-pkcs7-certreqresp
.p7sapplication/pkcs7-signature
.pbmimage/x-portable-bitmap
.pcxapplication/octet-stream
.pczapplication/octet-stream
.pdfapplication/pdf
.pfbapplication/octet-stream
.pfmapplication/octet-stream
.pfxapplication/x-pkcs12
.pgmimage/x-portable-graymap
.pkoapplication/vnd.ms-pki.pko
.pmaapplication/x-perfmon
.pmcapplication/x-perfmon
.pmlapplication/x-perfmon
.pmrapplication/x-perfmon
.pmwapplication/x-perfmon
.pngimage/png
.pnmimage/x-portable-anymap
.pnzimage/png
.potapplication/vnd.ms-powerpoint
.ppmimage/x-portable-pixmap
.ppsapplication/vnd.ms-powerpoint
.pptapplication/vnd.ms-powerpoint
.prfapplication/pics-rules
.prmapplication/octet-stream
.prxapplication/octet-stream
.psapplication/postscript
.psdapplication/octet-stream
.psmapplication/octet-stream
.pspapplication/octet-stream
.pubapplication/x-mspublisher
.qtvideo/quicktime
.qtlapplication/x-quicktimeplayer
.qxdapplication/octet-stream
.raaudio/x-pn-realaudio
.ramaudio/x-pn-realaudio
.rarapplication/octet-stream
.rasimage/x-cmu-raster
.rdfapplication/rdf+xml
.rfimage/vnd.rn-realflash
.rgbimage/x-rgb
.rmapplication/vnd.rn-realmedia
.rmiaudio/mid
.roffapplication/x-troff
.rpmaudio/x-pn-realaudio-plugin
.rtfapplication/rtf
.rtxtext/richtext
.scdapplication/x-msschedule
.scttext/scriptlet
.seaapplication/octet-stream
.setpayapplication/set-payment-initiation
.setregapplication/set-registration-initiation
.sgmltext/sgml
.shapplication/x-sh
.sharapplication/x-shar
.sitapplication/x-stuffit
.sldasmapplication/octet-stream
.sldprtapplication/octet-stream
.smdaudio/x-smd
.smiapplication/octet-stream
.smxaudio/x-smd
.smzaudio/x-smd
.sndaudio/basic
.snpapplication/octet-stream
.spcapplication/x-pkcs7-certificates
.splapplication/futuresplash
.srcapplication/x-wais-source
.ssmapplication/streamingmedia
.sstapplication/vnd.ms-pki.certstore
.stlapplication/vnd.ms-pki.stl
.sv4cpioapplication/x-sv4cpio
.sv4crcapplication/x-sv4crc
.svgapplication/octet-stream
.swfapplication/x-shockwave-flash
.tapplication/x-troff
.tarapplication/x-tar
.tclapplication/x-tcl
.texapplication/x-tex
.texiapplication/x-texinfo
.texinfoapplication/x-texinfo
.tgzapplication/x-compressed
.thnapplication/octet-stream
.tifimage/tiff
.tiffimage/tiff
.tocapplication/octet-stream
.trapplication/x-troff
.trmapplication/x-msterminal
.tsvtext/tab-separated-values
.ttfapplication/octet-stream
.txttext/plain
.u32application/octet-stream
.ulstext/iuls
.ustarapplication/x-ustar
.vbstext/vbscript
.vcftext/x-vcard
.vcstext/plain
.vdxapplication/vnd.visio
.vmltext/xml
.vsdapplication/vnd.visio
.vssapplication/vnd.visio
.vstapplication/vnd.visio
.vswapplication/vnd.visio
.vsxapplication/vnd.visio
.vtxapplication/vnd.visio
.wavaudio/wav
.waxaudio/x-ms-wax
.wbmpimage/vnd.wap.wbmp
.wcmapplication/vnd.ms-works
.wdbapplication/vnd.ms-works
.wksapplication/vnd.ms-works
.wmvideo/x-ms-wm
.wmaaudio/x-ms-wma
.wmdapplication/x-ms-wmd
.wmfapplication/x-msmetafile
.wmltext/vnd.wap.wml
.wmlcapplication/vnd.wap.wmlc
.wmlstext/vnd.wap.wmlscript
.wmlscapplication/vnd.wap.wmlscriptc
.wmpvideo/x-ms-wmp
.wmvvideo/x-ms-wmv
.wmxvideo/x-ms-wmx
.wmzapplication/x-ms-wmz
.worldapplication/octet-stream
.wpsapplication/vnd.ms-works
.wriapplication/x-mswrite
.wrlx-world/x-vrml
.wrzx-world/x-vrml
.wsdltext/xml
.wvxvideo/x-ms-wvx
.xapplication/directx
.xafx-world/x-vrml
.xbmimage/x-xbitmap
.xdrtext/plain
.xlaapplication/vnd.ms-excel
.xlcapplication/vnd.ms-excel
.xlmapplication/vnd.ms-excel
.xlsapplication/vnd.ms-excel
.xltapplication/vnd.ms-excel
.xlwapplication/vnd.ms-excel
.xmltext/xml
.xofx-world/x-vrml
.xpmimage/x-xpixmap
.xsdtext/xml
.xsftext/xml
.xsltext/xml
.xslttext/xml
.xsnapplication/octet-stream
.xwdimage/x-xwindowdump
.zapplication/x-compress
.zipapplication/x-zip-compressed
请联系 Advanced Hosting Support增加MIME类型

GoDaddy Linux虚拟主机

通过.htaccess配置MIME 详情参考:http://help.godaddy.com/article/375

在.htaccess文件中将文件类型和应用程序对应起来。比如,配置Flash的swf类型的文件代码:AddType application/x-shockwave-flash swf 其中AddType表示新增加MIME类型(也就是文件类型);application/x-shockwave-flash指定MIME的类型;swf是文件类型的扩展名。

格式都是类似于AddType application/x-shockwave-flash swf的,将其中的mime类型和文件类型扩展名与上表(windows下MIME类型配置)对应起来就行啦。。。

分享到:

评论完整模式加载中...如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理