关♥生活,关注互联网。
GoDaddy虚拟主机中MIME类型的配置
godaddy提供的免费空间有强制广告,用来做下载站或图床是比较合适的-速度够快,不过默认情况下linux空间只能打开或下载.jpg格式的文件,其他文件打开是以文本格式,也无法下载,查了下资料,只要mime类型配置好,就可以和平时用的正常虚拟主机一样设置打开相应类型文件的程序了。
GoDaddy windows虚拟主机
配置的MIME类型以下MIME类型配置在GoDaddy windows虚拟主机上
文件扩展名 | 文件类型 (MIME) |
0.323 | text/h323 |
.aaf | application/octet-stream |
.aca | application/octet-stream |
.acx | application/internet-property-stream |
.afm | application/octet-stream |
.ai | application/postscript |
.aif | audio/x-aiff |
.aifc | audio/aiff |
.aiff | audio/aiff |
.applicati | application/x-ms-application |
.art | image/x-jg |
.asd | application/octet-stream |
.asf | video/x-ms-asf |
.asi | application/octet-stream |
.asm | text/plain |
.asr | video/x-ms-asf |
.asx | video/x-ms-asf |
.au | audio/basic |
.avi | video/x-msvideo |
.axs | application/olescript |
.bas | text/plain |
.bcpio | application/x-bcpio |
.bin | application/octet-stream |
.bmp | image/bmp |
.c | text/plain |
.cab | application/octet-stream |
.cat | application/vnd.ms-pki.seccat |
.cdf | application/x-cdf |
.chm | application/octet-stream |
.class | application/x-java-applet |
.clp | application/x-msclip |
.cmx | image/x-cmx |
.cnf | text/plain |
.cod | image/cis-cod |
.cpio | application/x-cpio |
.cpp | text/plain |
.crd | application/x-mscardfile |
.crl | application/pkix-crl |
.crt | application/x-x509-ca-cert |
.csh | application/x-csh |
.css | text/css |
.csv | application/octet-stream |
.cur | application/octet-stream |
.dcr | application/x-director |
.deploy | application/octet-stream |
.der | application/x-x509-ca-cert |
.dib | image/bmp |
.dir | application/x-director |
.disco | text/xml |
.dll | application/x-msdownload |
.dlm | text/dlm |
.doc | application/msword |
.dot | application/msword |
.dsp | application/octet-stream |
.dtd | text/xml |
.dvi | application/x-dvi |
.dwf | drawing/x-dwf |
.dwp | application/octet-stream |
.dxr | application/x-director |
.easm | application/octet-stream |
.eml | message/rfc822 |
.emz | application/octet-stream |
.eot | application/octet-stream |
.eps | application/postscript |
.etx | text/x-setext |
.evy | application/envoy |
.ex_ | application/octet-stream |
.exe | application/octet-stream |
.fdf | application/vnd.fdf |
.fif | application/fractals |
.fla | application/octet-stream |
.flr | x-world/x-vrml |
.gif | image/gif |
.gtar | application/x-gtar |
.gz | application/x-gzip |
.h | text/plain |
.hdf | application/x-hdf |
.hdml | text/x-hdml |
.hhc | application/x-oleobject |
.hhk | application/octet-stream |
.hhp | application/octet-stream |
.hlp | application/winhlp |
.hqx | application/mac-binhex40 |
.hsf | application/octet-stream |
.hta | application/hta |
.htc | text/x-component |
.htm | text/html |
.html | text/html |
.htt | text/webviewhtml |
.hxt | text/html |
.ica | application/x-ica |
.ico | image/x-icon |
.ics | application/octet-stream |
.ief | image/ief |
.iii | application/x-iphone |
.inf | application/octet-stream |
.ins | application/x-internet-signup |
.isp | application/x-internet-signup |
.IVF | video/x-ivf |
.jar | application/java-archive |
.java | application/octet-stream |
.jck | application/liquidmotion |
.jcz | application/liquidmotion |
.jfif | image/pjpeg |
.jpb | application/octet-stream |
.jpe | image/jpeg |
.jpeg | image/jpeg |
.jpg | image/jpeg |
.js | application/x-javascript |
.latex | application/x-latex |
.lit | application/x-ms-reader |
.lpk | application/octet-stream |
.lsf | video/x-la-asf |
.lsx | video/x-la-asf |
.lzh | application/octet-stream |
.m13 | application/x-msmediaview |
.m14 | application/x-msmediaview |
.m1v | video/mpeg |
.m3u | audio/x-mpegurl |
.man | application/x-troff-man |
.manifest | application/x-ms-manifest |
.map | text/plain |
.mdb | application/x-msaccess |
.mdp | application/octet-stream |
.me | application/x-troff-me |
.mht | message/rfc822 |
.mhtml | message/rfc822 |
.mid | audio/mid |
.midi | audio/mid |
.mix | application/octet-stream |
.mmf | application/x-smaf |
.mno | text/xml |
.mny | application/x-msmoney |
.mov | video/quicktime |
.movie | video/x-sgi-movie |
.mp2 | video/mpeg |
.mp3 | audio/mpeg |
.mp4 | audio/mpeg |
.mpa | video/mpeg |
.mpe | video/mpeg |
.mpeg | video/mpeg |
.mpg | video/mpeg |
.mpp | application/vnd.ms-project |
.mpv2 | video/mpeg |
.ms | application/x-troff-ms |
.msi | application/octet-stream |
.mvb | application/x-msmediaview |
.nc | application/x-netcdf |
.nsc | video/x-ms-asf |
.nws | message/rfc822 |
.ocx | application/octet-stream |
.oda | application/oda |
.ods | application/oleobject |
.p10 | application/pkcs10 |
.p12 | application/x-pkcs12 |
.p7b | application/x-pkcs7-certificates |
.p7c | application/pkcs7-mime |
.p7m | application/pkcs7-mime |
.p7r | application/x-pkcs7-certreqresp |
.p7s | application/pkcs7-signature |
.pbm | image/x-portable-bitmap |
.pcx | application/octet-stream |
.pcz | application/octet-stream |
application/pdf | |
.pfb | application/octet-stream |
.pfm | application/octet-stream |
.pfx | application/x-pkcs12 |
.pgm | image/x-portable-graymap |
.pko | application/vnd.ms-pki.pko |
.pma | application/x-perfmon |
.pmc | application/x-perfmon |
.pml | application/x-perfmon |
.pmr | application/x-perfmon |
.pmw | application/x-perfmon |
.png | image/png |
.pnm | image/x-portable-anymap |
.pnz | image/png |
.pot | application/vnd.ms-powerpoint |
.ppm | image/x-portable-pixmap |
.pps | application/vnd.ms-powerpoint |
.ppt | application/vnd.ms-powerpoint |
.prf | application/pics-rules |
.prm | application/octet-stream |
.prx | application/octet-stream |
.ps | application/postscript |
.psd | application/octet-stream |
.psm | application/octet-stream |
.psp | application/octet-stream |
.pub | application/x-mspublisher |
.qt | video/quicktime |
.qtl | application/x-quicktimeplayer |
.qxd | application/octet-stream |
.ra | audio/x-pn-realaudio |
.ram | audio/x-pn-realaudio |
.rar | application/octet-stream |
.ras | image/x-cmu-raster |
.rdf | application/rdf+xml |
.rf | image/vnd.rn-realflash |
.rgb | image/x-rgb |
.rm | application/vnd.rn-realmedia |
.rmi | audio/mid |
.roff | application/x-troff |
.rpm | audio/x-pn-realaudio-plugin |
.rtf | application/rtf |
.rtx | text/richtext |
.scd | application/x-msschedule |
.sct | text/scriptlet |
.sea | application/octet-stream |
.setpay | application/set-payment-initiation |
.setreg | application/set-registration-initiation |
.sgml | text/sgml |
.sh | application/x-sh |
.shar | application/x-shar |
.sit | application/x-stuffit |
.sldasm | application/octet-stream |
.sldprt | application/octet-stream |
.smd | audio/x-smd |
.smi | application/octet-stream |
.smx | audio/x-smd |
.smz | audio/x-smd |
.snd | audio/basic |
.snp | application/octet-stream |
.spc | application/x-pkcs7-certificates |
.spl | application/futuresplash |
.src | application/x-wais-source |
.ssm | application/streamingmedia |
.sst | application/vnd.ms-pki.certstore |
.stl | application/vnd.ms-pki.stl |
.sv4cpio | application/x-sv4cpio |
.sv4crc | application/x-sv4crc |
.svg | application/octet-stream |
.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 |
.tgz | application/x-compressed |
.thn | application/octet-stream |
.tif | image/tiff |
.tiff | image/tiff |
.toc | application/octet-stream |
.tr | application/x-troff |
.trm | application/x-msterminal |
.tsv | text/tab-separated-values |
.ttf | application/octet-stream |
.txt | text/plain |
.u32 | application/octet-stream |
.uls | text/iuls |
.ustar | application/x-ustar |
.vbs | text/vbscript |
.vcf | text/x-vcard |
.vcs | text/plain |
.vdx | application/vnd.visio |
.vml | text/xml |
.vsd | application/vnd.visio |
.vss | application/vnd.visio |
.vst | application/vnd.visio |
.vsw | application/vnd.visio |
.vsx | application/vnd.visio |
.vtx | application/vnd.visio |
.wav | audio/wav |
.wax | audio/x-ms-wax |
.wbmp | image/vnd.wap.wbmp |
.wcm | application/vnd.ms-works |
.wdb | application/vnd.ms-works |
.wks | application/vnd.ms-works |
.wm | video/x-ms-wm |
.wma | audio/x-ms-wma |
.wmd | application/x-ms-wmd |
.wmf | application/x-msmetafile |
.wml | text/vnd.wap.wml |
.wmlc | application/vnd.wap.wmlc |
.wmls | text/vnd.wap.wmlscript |
.wmlsc | application/vnd.wap.wmlscriptc |
.wmp | video/x-ms-wmp |
.wmv | video/x-ms-wmv |
.wmx | video/x-ms-wmx |
.wmz | application/x-ms-wmz |
.world | application/octet-stream |
.wps | application/vnd.ms-works |
.wri | application/x-mswrite |
.wrl | x-world/x-vrml |
.wrz | x-world/x-vrml |
.wsdl | text/xml |
.wvx | video/x-ms-wvx |
.x | application/directx |
.xaf | x-world/x-vrml |
.xbm | image/x-xbitmap |
.xdr | text/plain |
.xla | application/vnd.ms-excel |
.xlc | application/vnd.ms-excel |
.xlm | application/vnd.ms-excel |
.xls | application/vnd.ms-excel |
.xlt | application/vnd.ms-excel |
.xlw | application/vnd.ms-excel |
.xml | text/xml |
.xof | x-world/x-vrml |
.xpm | image/x-xpixmap |
.xsd | text/xml |
.xsf | text/xml |
.xsl | text/xml |
.xslt | text/xml |
.xsn | application/octet-stream |
.xwd | image/x-xwindowdump |
.z | application/x-compress |
.zip | application/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类型配置)对应起来就行啦。。。
约14年前
好站不错,收藏了!互换友链联系 contact@eluu.com,欢迎回访驿路网 http://www.eluu.com!
约14年前
@驿路(Eluu)双语译文, 谢谢哈,你的链接已做好,欢迎友链。
约13年前
Do you people have a facebook fan page? I looked for one on twitter but could not discover one, I would really like to become a fan!
约13年前
nice post. thanks.