• 关于

    stl linux

    的搜索结果

问题

Linux下c++编程中,STL模板的使用。

杨冬芳 2019-12-01 20:21:08 981 浏览量 回答数 1

问题

C++ STL 遍历 map 的时候如何删除其中的 element :报错

kun坤 2020-06-14 08:07:50 0 浏览量 回答数 1

问题

C++ STL 遍历 map 的时候如何删除其中的 element:配置报错 

kun坤 2020-06-01 10:23:16 0 浏览量 回答数 1

阿里云试用中心,为您提供0门槛上云实践机会!

0元试用32+款产品,最高免费12个月!拨打95187-1,咨询专业上云建议!

问题

C++ STL 遍历 map 的时候如何删除其中的 element - C++报错

montos 2020-06-03 13:06:25 4 浏览量 回答数 1

问题

Linux 下编译C出错(windows编译正常)

云栖技术 2019-12-01 19:45:23 1185 浏览量 回答数 1

回答

C++:《C++ primer》,《深度探索C++对象模型》,《stl源码剖析》 算法:《算法导论》,《编程之美》,一本重理论,一本重实践 Linux后台:《Unix环境高级编程》,《Unix网络编程》 前端:《javascript高级程序设计》,《HTML5程序设计》 网络:《tcp/ip详解 卷一》 计算机体系:《现代操作系统》(强推),《深入理解计算机系统》(看前三章),《程序员的自我修养》 测试:《软件测试的艺术》 软件工程:《代码大全》,《设计模式》(四人帮的),《重构》 搜索引擎:《走进搜索引擎》 其他:《上帝掷骰子吗》,《geb》,《希修斯之船》

管理贝贝 2019-12-02 01:20:23 0 浏览量 回答数 0

回答

技巧: 《程序员面试宝典》这本书有Java、C++等各种版本,主要介绍笔试面试常考的题,有些知识点真的很细,非常值得看。 数据结构和算法: 《编程之美》里面的编程题经常考到,有些可能比较难。 《剑指offer》这个是强烈推荐的,掌握解决问题的思路很重要。比如以空间换时间、动态规划等。 《数据结构》这个不用多说,链表、树、图是经常考到的。 《算法导论》有精力的话,可以选择性的看一看。 《编程珠玑》 语言: 《深入浅出MFC》 《深度探索C++对象模型》介绍C++面向对象中的构造函数、虚函数等,看完之后能理解程序的运行结果了。 《C++ Primer》大量C++的基础,不过基础不太好的同学建议看谭浩强的《C++程序设计》。 《Effective C++》 《Java编程思想》 《大象Thinking in UML》 《JavaScript 权威指南》 《C++标准程序库》 《STL源码剖析》 设计模式: 《设计模式》 《HeadFirst设计模式》 脚本语言: 《Python学习手册》 掌握一门脚本语言很必要,最好有工程实践。 操作系统方面: 《Linux程序设计-鸟哥的私房菜》。 《UNIX网络编程》 不但要会基本命令,最好能在linux环境下有编程经验。 《深入理解计算机系统》个人觉得这本书并不好。 数据库: 没有发现更好的,要会基本的SQL命令。

沉默术士 2019-12-02 01:19:49 0 浏览量 回答数 0

问题

如何定位Android NDK开发中遇到的错误?报错

爱吃鱼的程序员 2020-06-14 18:55:10 0 浏览量 回答数 1

回答

作者:匿名用户链接:https://www.zhihu.com/question/30548640/answer/48787538来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 题主问的是调用命令,那当然是 POSIX 系 Shell 不罗嗦。如果你要个调用命令还算可以并且写起来舒服点的语言,建议找 Ruby 去。另外偏题去说 Shell 不是系统级编程语言的我也是醉了,我还真没看到过没有 Shell 能干活的 Unix/Linux 家伙的,就连你个 sysVinit 也得靠 shell 啊。并且你还触碰到了 Unix 狂魔的 G 点——Shell 用户万能的胶水能力被丢到哪里去了?随便起一个 Python Shell 抓住 stdin 灌或者 /tmp 丢个文件喂,你能干的我全都能干(这是认真的,参见 makeself 等自解压 shell 脚本形式)。讲 Google Style Guide 的算是靠了点谱(虽然还是丢下了调用命令这回事),问题是 Google 还不许用 C++ STL 呢你怎么不说?Bash 这玩意,认真写的人文件头都 source 一组小库的。嗯上面三段讲的是调用命令这个需求、最小依赖这个优点和语言本身不常被严肃使用(放着功能禁止用)这回事。接下来的内容严重不友善,涉及大量打岔,请题主手动忽略。大概大家都看得出我和生意人在微博上有些观点上的矛盾,我也承认匿名这样黑不大好。但是这和用 Shell 开命令搞管道胶水一样爽啊,我怎么会放弃?稍有常识的人都能看出,LibreWindows 冒泡排序的 shell 脚本完全不是用和 py 同一种风格写出来的。我在这里做了较为忠实的翻译:#!/bin/bashorig=(12 5 13 8 9 65) paramaters[] -> list[] bubble(){ list=("$@") local size=$((${#list[@]}-1)) i sorted=0 t until ((sorted)); do sorted=1 for ((i=0;i<size;i++)); do if ((list[i] > list[i+1])); then sorted=0; t=${list[i]} list[i]=${list[i+1]} list[i+1]=$t fi done done} bubble "${orig[@]}"echo ${list[@]}: << _NOTESReal unix-shelly way:sorted=$(for i in ${orig[@]}; do echo $i; done | sort -g)sorted=$($sorted)echo ${sorted[@]}_NOTESBash 的完整版本可以使用 declare -n 创建引用类型的变量,但是 Cygwin 上的 bash 没编译进去我也就先不用吧。提请阁下注意一点,数组本非古老的 Shell 所支持的,She-bang 不应调用 /bin/sh 而应使用 /bin/bash 执行。Bash 带着镣铐做这种拓展还要拿来说就算了,还强行丑化代码不开高亮接着便是叫人“感受一下”,大概也是先生您在微博上常用的套路了。另外我承认论现代编程 Shell 不如 Python,也承认 WoSign/CNNIC 验证就是比资本主义快。啊我忘了一点,这个问题本来就是讨论调用命令的,你跟我扯一般计算干啥?不要问我是谁,我只是个买辣条的。

xuning715 2019-12-02 01:10:00 0 浏览量 回答数 0

回答

请参考个人博客:https://blog.csdn.net/u010870518/article/details/79450295 在进一步分析为什么MySQL数据库索引选择使用B+树之前,我相信很多小伙伴对数据结构中的树还是有些许模糊的,因此我们由浅入深一步步探讨树的演进过程,在一步步引出B树以及为什么MySQL数据库索引选择使用B+树! 学过数据结构的一般对最基础的树都有所认识,因此我们就从与我们主题更为相近的二叉查找树开始。 一、二叉查找树 (1)二叉树简介: 二叉查找树也称为有序二叉查找树,满足二叉查找树的一般性质,是指一棵空树具有如下性质: 1、任意节点左子树不为空,则左子树的值均小于根节点的值; 2、任意节点右子树不为空,则右子树的值均大于于根节点的值; 3、任意节点的左右子树也分别是二叉查找树; 4、没有键值相等的节点; 上图为一个普通的二叉查找树,按照中序遍历的方式可以从小到大的顺序排序输出:2、3、5、6、7、8。 对上述二叉树进行查找,如查键值为5的记录,先找到根,其键值是6,6大于5,因此查找6的左子树,找到3;而5大于3,再找其右子树;一共找了3次。如果按2、3、5、6、7、8的顺序来找同样需求3次。用同样的方法在查找键值为8的这个记录,这次用了3次查找,而顺序查找需要6次。计算平均查找次数得:顺序查找的平均查找次数为(1+2+3+4+5+6)/ 6 = 3.3次,二叉查找树的平均查找次数为(3+3+3+2+2+1)/6=2.3次。二叉查找树的平均查找速度比顺序查找来得更快。 (2)局限性及应用 一个二叉查找树是由n个节点随机构成,所以,对于某些情况,二叉查找树会退化成一个有n个节点的线性链。如下图: 大家看上图,如果我们的根节点选择是最小或者最大的数,那么二叉查找树就完全退化成了线性结构。上图中的平均查找次数为(1+2+3+4+5+5)/6=3.16次,和顺序查找差不多。显然这个二叉树的查询效率就很低,因此若想最大性能的构造一个二叉查找树,需要这个二叉树是平衡的(这里的平衡从一个显著的特点可以看出这一棵树的高度比上一个输的高度要大,在相同节点的情况下也就是不平衡),从而引出了一个新的定义-平衡二叉树AVL。 二、AVL树 (1)简介 AVL树是带有平衡条件的二叉查找树,一般是用平衡因子差值判断是否平衡并通过旋转来实现平衡,左右子树树高不超过1,和红黑树相比,它是严格的平衡二叉树,平衡条件必须满足(所有节点的左右子树高度差不超过1)。不管我们是执行插入还是删除操作,只要不满足上面的条件,就要通过旋转来保持平衡,而旋转是非常耗时的,由此我们可以知道AVL树适合用于插入删除次数比较少,但查找多的情况。 从上面是一个普通的平衡二叉树,这张图我们可以看出,任意节点的左右子树的平衡因子差值都不会大于1。 (2)局限性 由于维护这种高度平衡所付出的代价比从中获得的效率收益还大,故而实际的应用不多,更多的地方是用追求局部而不是非常严格整体平衡的红黑树。当然,如果应用场景中对插入删除不频繁,只是对查找要求较高,那么AVL还是较优于红黑树。 (3)应用 1、Windows NT内核中广泛存在; 三、红黑树 (1)简介 一种二叉查找树,但在每个节点增加一个存储位表示节点的颜色,可以是red或black。通过对任何一条从根到叶子的路径上各个节点着色的方式的限制,红黑树确保没有一条路径会比其它路径长出两倍。它是一种弱平衡二叉树(由于是若平衡,可以推出,相同的节点情况下,AVL树的高度低于红黑树),相对于要求严格的AVL树来说,它的旋转次数变少,所以对于搜索、插入、删除操作多的情况下,我们就用红黑树。 (2)性质 1、每个节点非红即黑; 2、根节点是黑的; 3、每个叶节点(叶节点即树尾端NULL指针或NULL节点)都是黑的; 4、如果一个节点是红的,那么它的两儿子都是黑的; 5、对于任意节点而言,其到叶子点树NULL指针的每条路径都包含相同数目的黑节点; 6、每条路径都包含相同的黑节点; (3)应用 1、广泛用于C++的STL中,Map和Set都是用红黑树实现的; 2、著名的Linux进程调度Completely Fair Scheduler,用红黑树管理进程控制块,进程的虚拟内存区域都存储在一颗红黑树上,每个虚拟地址区域都对应红黑树的一个节点,左指针指向相邻的地址虚拟存储区域,右指针指向相邻的高地址虚拟地址空间; 3、IO多路复用epoll的实现采用红黑树组织管理sockfd,以支持快速的增删改查; 4、Nginx中用红黑树管理timer,因为红黑树是有序的,可以很快的得到距离当前最小的定时器; 5、Java中TreeMap的实现; 四、B/B+树 说了上述的三种树:二叉查找树、AVL和红黑树,似乎我们还没有摸到MySQL为什么要使用B+树作为索引的实现,不要急,接下来我们就先探讨一下什么是B树。 (1)简介 我们在MySQL中的数据一般是放在磁盘中的,读取数据的时候肯定会有访问磁盘的操作,磁盘中有两个机械运动的部分,分别是盘片旋转和磁臂移动。盘片旋转就是我们市面上所提到的多少转每分钟,而磁盘移动则是在盘片旋转到指定位置以后,移动磁臂后开始进行数据的读写。那么这就存在一个定位到磁盘中的块的过程,而定位是磁盘的存取中花费时间比较大的一块,毕竟机械运动花费的时候要远远大于电子运动的时间。当大规模数据存储到磁盘中的时候,显然定位是一个非常花费时间的过程,但是我们可以通过B树进行优化,提高磁盘读取时定位的效率。 为什么B类树可以进行优化呢?我们可以根据B类树的特点,构造一个多阶的B类树,然后在尽量多的在结点上存储相关的信息,保证层数尽量的少,以便后面我们可以更快的找到信息,磁盘的I/O操作也少一些,而且B类树是平衡树,每个结点到叶子结点的高度都是相同,这也保证了每个查询是稳定的。 总的来说,B/B+树是为了磁盘或其它存储设备而设计的一种平衡多路查找树(相对于二叉,B树每个内节点有多个分支),与红黑树相比,在相同的的节点的情况下,一颗B/B+树的高度远远小于红黑树的高度(在下面B/B+树的性能分析中会提到)。B/B+树上操作的时间通常由存取磁盘的时间和CPU计算时间这两部分构成,而CPU的速度非常快,所以B树的操作效率取决于访问磁盘的次数,关键字总数相同的情况下B树的高度越小,磁盘I/O所花的时间越少。 注意B-树就是B树,-只是一个符号。 (2)B树的性质 1、定义任意非叶子结点最多只有M个儿子,且M>2; 2、根结点的儿子数为[2, M]; 3、除根结点以外的非叶子结点的儿子数为[M/2, M]; 4、每个结点存放至少M/2-1(取上整)和至多M-1个关键字;(至少2个关键字) 5、非叶子结点的关键字个数=指向儿子的指针个数-1; 6、非叶子结点的关键字:K[1], K[2], …, K[M-1];且K[i] < K[i+1]; 7、非叶子结点的指针:P[1], P[2], …, P[M];其中P[1]指向关键字小于K[1]的子树,P[M]指向关键字大于K[M-1]的子树,其它P[i]指向关键字属于(K[i-1], K[i])的子树; 8、所有叶子结点位于同一层; 这里只是一个简单的B树,在实际中B树节点中关键字很多的,上面的图中比如35节点,35代表一个key(索引),而小黑块代表的是这个key所指向的内容在内存中实际的存储位置,是一个指针。 五、B+树 (1)简介 B+树是应文件系统所需而产生的一种B树的变形树(文件的目录一级一级索引,只有最底层的叶子节点(文件)保存数据)非叶子节点只保存索引,不保存实际的数据,数据都保存在叶子节点中,这不就是文件系统文件的查找吗? 我们就举个文件查找的例子:有3个文件夹a、b、c, a包含b,b包含c,一个文件yang.c,a、b、c就是索引(存储在非叶子节点), a、b、c只是要找到的yang.c的key,而实际的数据yang.c存储在叶子节点上。 所有的非叶子节点都可以看成索引部分! (2)B+树的性质(下面提到的都是和B树不相同的性质) 1、非叶子节点的子树指针与关键字个数相同; 2、非叶子节点的子树指针p[i],指向关键字值属于[k[i],k[i+1]]的子树.(B树是开区间,也就是说B树不允许关键字重复,B+树允许重复); 3、为所有叶子节点增加一个链指针; 4、所有关键字都在叶子节点出现(稠密索引). (且链表中的关键字恰好是有序的); 5、非叶子节点相当于是叶子节点的索引(稀疏索引),叶子节点相当于是存储(关键字)数据的数据层; 6、更适合于文件系统; 非叶子节点(比如5,28,65)只是一个key(索引),实际的数据存在叶子节点上(5,8,9)才是真正的数据或指向真实数据的指针。 (3)应用 1、B和B+树主要用在文件系统以及数据库做索引,比如MySQL; 六、B/B+树性能分析 n个节点的平衡二叉树的高度为H(即logn),而n个节点的B/B+树的高度为logt((n+1)/2)+1;   若要作为内存中的查找表,B树却不一定比平衡二叉树好,尤其当m较大时更是如此。因为查找操作CPU的时间在B-树上是O(mlogtn)=O(lgn(m/lgt)),而m/lgt>1;所以m较大时O(mlogtn)比平衡二叉树的操作时间大得多。因此在内存中使用B树必须取较小的m。(通常取最小值m=3,此时B-树中每个内部结点可以有2或3个孩子,这种3阶的B-树称为2-3树)。 七、为什么说B+树比B树更适合数据库索引? 1、 B+树的磁盘读写代价更低:B+树的内部节点并没有指向关键字具体信息的指针,因此其内部节点相对B树更小,如果把所有同一内部节点的关键字存放在同一盘块中,那么盘块所能容纳的关键字数量也越多,一次性读入内存的需要查找的关键字也就越多,相对IO读写次数就降低了。 2、B+树的查询效率更加稳定:由于非终结点并不是最终指向文件内容的结点,而只是叶子结点中关键字的索引。所以任何关键字的查找必须走一条从根结点到叶子结点的路。所有关键字查询的路径长度相同,导致每一个数据的查询效率相当。 3、由于B+树的数据都存储在叶子结点中,分支结点均为索引,方便扫库,只需要扫一遍叶子结点即可,但是B树因为其分支结点同样存储着数据,我们要找到具体的数据,需要进行一次中序遍历按序来扫,所以B+树更加适合在区间查询的情况,所以通常B+树用于数据库索引。 PS:我在知乎上看到有人是这样说的,我感觉说的也挺有道理的: 他们认为数据库索引采用B+树的主要原因是:B树在提高了IO性能的同时并没有解决元素遍历的我效率低下的问题,正是为了解决这个问题,B+树应用而生。B+树只需要去遍历叶子节点就可以实现整棵树的遍历。而且在数据库中基于范围的查询是非常频繁的,而B树不支持这样的操作或者说效率太低。 ———————————————— 版权声明:本文为CSDN博主「徐刘根」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/u010870518/java/article/details/79450295

AA大大官 2020-03-31 14:54:01 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:16 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:14 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:13 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:16 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:14 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:17 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:15 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:15 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:15 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:16 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:17 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:17 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:15 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:13 0 浏览量 回答数 0

回答

详细解答可以参考官方帮助文档1. Windows 主机系统的虚拟主机,在 主机管理控制台 可以添加系统支持的 MIME 的类型。操作的方式:登录 主机管理控制台 >   管理 > 站点信息 > 高级环境设置 > MIME类型设置。MIME 类型如果不知道,请查看文档最后列出的常用类型介绍。比如添加 pdf 类型 :第一个方框(文件类型)填写 .pdf ,第二个(应用程序)填写 application/pdf 。 2. Linux 系统的虚拟主机,无法在控制面板操作,需要编写伪静态规则文件添加。2.1 找到伪静态文件 .htaccess  FTP 显示隐藏文件  .htaccess  参考这里。2.2 在本地编辑 .htaccess 文件添加的规则如下(这里举例是mp4,支持添加多条)AddHandler audio/mp4 .mp4 3. 常用MIME类型介绍 格式前面为后辍名,后面为对应的 MIME 型例如:rar application/x-rar-compressed  表示 rar 对应的是application/x-rar-compressed { “.323”, “text/h323” },{ “.3gp”, “video/3gpp” },{ “.aab”, “application/x-authoware-bin” },{ “.aam”, “application/x-authoware-map” },{ “.aas”, “application/x-authoware-seg” },{ “.acx”, “application/internet-property-stream” },{ “.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” },{ “.apk”, “application/vnd.android.package-archive” },{ “.asc”, “text/plain” },{ “.asd”, “application/astound” },{ “.asf”, “video/x-ms-asf” },{ “.asn”, “application/astound” },{ “.asp”, “application/x-asap” },{ “.asr”, “video/x-ms-asf” },{ “.asx”, “video/x-ms-asf” },{ “.au”, “audio/basic” },{ “.avb”, “application/octet-stream” },{ “.avi”, “video/x-msvideo” },{ “.awb”, “audio/amr-wb” },{ “.axs”, “application/olescript” },{ “.bas”, “text/plain” },{ “.bcpio”, “application/x-bcpio” },{ “.bin “, “application/octet-stream” },{ “.bld”, “application/bld” },{ “.bld2”, “application/bld2” },{ “.bmp”, “image/bmp” },{ “.bpk”, “application/octet-stream” },{ “.bz2”, “application/x-bzip2” },{ “.c”, “text/plain” },{ “.cal”, “image/x-cals” },{ “.cat”, “application/vnd.ms-pkiseccat” },{ “.ccn”, “application/x-cnc” },{ “.cco”, “application/x-cocoa” },{ “.cdf”, “application/x-cdf” },{ “.cer”, “application/x-x509-ca-cert” },{ “.cgi”, “magnus-internal/cgi” },{ “.chat”, “application/x-chat” },{ “.class”, “application/octet-stream” },{ “.clp”, “application/x-msclip” },{ “.cmx”, “image/x-cmx” },{ “.co”, “application/x-cult3d-object” },{ “.cod”, “image/cis-cod” },{ “.conf”, “text/plain” },{ “.cpio”, “application/x-cpio” },{ “.cpp”, “text/plain” },{ “.cpt”, “application/mac-compactpro” },{ “.crd”, “application/x-mscardfile” },{ “.crl”, “application/pkix-crl” },{ “.crt”, “application/x-x509-ca-cert” },{ “.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” },{ “.der”, “application/x-x509-ca-cert” },{ “.dhtml”, “text/html” },{ “.dir”, “application/x-director” },{ “.dll”, “application/x-msdownload” },{ “.dmg”, “application/octet-stream” },{ “.dms”, “application/octet-stream” },{ “.doc”, “application/msword” },{ “.docx”, “application/vnd.openxmlformats-officedocument.wordprocessingml.document” },{ “.dot”, “application/msword” },{ “.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/envoy” },{ “.exe”, “application/octet-stream” },{ “.fh4”, “image/x-freehand” },{ “.fh5”, “image/x-freehand” },{ “.fhc”, “image/x-freehand” },{ “.fif”, “application/fractals” },{ “.flr”, “x-world/x-vrml” },{ “.flv”, “flv-application/octet-stream” },{ “.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” },{ “.h”, “text/plain” },{ “.hdf”, “application/x-hdf” },{ “.hdm”, “text/x-hdml” },{ “.hdml”, “text/x-hdml” },{ “.hlp”, “application/winhlp” },{ “.hqx”, “application/mac-binhex40” },{ “.hta”, “application/hta” },{ “.htc”, “text/x-component” },{ “.htm”, “text/html” },{ “.html”, “text/html” },{ “.hts”, “text/html” },{ “.htt”, “text/webviewhtml” },{ “.ice”, “x-conference/x-cooltalk” },{ “.ico”, “image/x-icon” },{ “.ief”, “image/ief” },{ “.ifm”, “image/gif” },{ “.ifs”, “image/ifs” },{ “.iii”, “application/x-iphone” },{ “.imy”, “audio/melody” },{ “.ins”, “application/x-internet-signup” },{ “.ips”, “application/x-ipscript” },{ “.ipx”, “application/x-ipix” },{ “.isp”, “application/x-internet-signup” },{ “.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” },{ “.java”, “text/plain” },{ “.jfif”, “image/pipeg” },{ “.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” },{ “.log”, “text/plain” },{ “.lsf”, “video/x-la-asf” },{ “.lsx”, “video/x-la-asf” },{ “.lzh”, “application/octet-stream” },{ “.m13”, “application/x-msmediaview” },{ “.m14”, “application/x-msmediaview” },{ “.m15”, “audio/x-mod” },{ “.m3u”, “audio/x-mpegurl” },{ “.m3url”, “audio/x-mpegurl” },{ “.m4a”, “audio/mp4a-latm” },{ “.m4b”, “audio/mp4a-latm” },{ “.m4p”, “audio/mp4a-latm” },{ “.m4u”, “video/vnd.mpegurl” },{ “.m4v”, “video/x-m4v” },{ “.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” },{ “.mht”, “message/rfc822” },{ “.mhtml”, “message/rfc822” },{ “.mi”, “application/x-mif” },{ “.mid”, “audio/mid” },{ “.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”, “video/mpeg” },{ “.mp3”, “audio/mpeg” },{ “.mp4”, “video/mp4” },{ “.mpa”, “video/mpeg” },{ “.mpc”, “application/vnd.mpohun.certificate” },{ “.mpe”, “video/mpeg” },{ “.mpeg”, “video/mpeg” },{ “.mpg”, “video/mpeg” },{ “.mpg4”, “video/mp4” },{ “.mpga”, “audio/mpeg” },{ “.mpn”, “application/vnd.mophun.application” },{ “.mpp”, “application/vnd.ms-project” },{ “.mps”, “application/x-mapserver” },{ “.mpv2”, “video/mpeg” },{ “.mrl”, “text/x-mrml” },{ “.mrm”, “application/x-mrm” },{ “.ms”, “application/x-troff-ms” },{ “.msg”, “application/vnd.ms-outlook” },{ “.mts”, “application/metastream” },{ “.mtx”, “application/metastream” },{ “.mtz”, “application/metastream” },{ “.mvb”, “application/x-msmediaview” },{ “.mzv”, “application/metastream” },{ “.nar”, “application/zip” },{ “.nbmp”, “image/nbmp” },{ “.nc”, “application/x-netcdf” },{ “.ndb”, “x-lml/x-ndb” },{ “.ndwn”, “application/ndwn” },{ “.nif”, “application/x-nif” },{ “.nmz”, “application/x-scream” },{ “.nokia-op-logo”, “image/vnd.nok-oplogo-color” },{ “.npx”, “application/x-netfpx” },{ “.nsnd”, “audio/nsnd” },{ “.nva”, “application/x-neva1” },{ “.nws”, “message/rfc822” },{ “.oda”, “application/oda” },{ “.ogg”, “audio/ogg” },{ “.oom”, “application/x-AtlasMate-Plugin” },{ “.p10”, “application/pkcs10” },{ “.p12”, “application/x-pkcs12” },{ “.p7b”, “application/x-pkcs7-certificates” },{ “.p7c”, “application/x-pkcs7-mime” },{ “.p7m”, “application/x-pkcs7-mime” },{ “.p7r”, “application/x-pkcs7-certreqresp” },{ “.p7s”, “application/x-pkcs7-signature” },{ “.pac”, “audio/x-pac” },{ “.pae”, “audio/x-epac” },{ “.pan”, “application/x-pan” },{ “.pbm”, “image/x-portable-bitmap” },{ “.pcx”, “image/x-pcx” },{ “.pda”, “image/x-pda” },{ “.pdb”, “chemical/x-pdb” },{ “.pdf”, “application/pdf” },{ “.pfr”, “application/font-tdpfr” },{ “.pfx”, “application/x-pkcs12” },{ “.pgm”, “image/x-portable-graymap” },{ “.pict”, “image/x-pict” },{ “.pko”, “application/ynd.ms-pkipko” },{ “.pm”, “application/x-perl” },{ “.pma”, “application/x-perfmon” },{ “.pmc”, “application/x-perfmon” },{ “.pmd”, “application/x-pmd” },{ “.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” },{ “.pptx”, “application/vnd.openxmlformats-officedocument.presentationml.presentation” },{ “.pqf”, “application/x-cprplayer” },{ “.pqi”, “application/cprplayer” },{ “.prc”, “application/x-prc” },{ “.prf”, “application/pics-rules” },{ “.prop”, “text/plain” },{ “.proxy”, “application/x-ns-proxy-autoconfig” },{ “.ps”, “application/postscript” },{ “.ptlk”, “application/listenup” },{ “.pub”, “application/x-mspublisher” },{ “.pvx”, “video/x-pv-pvx” },{ “.qcp”, “audio/vnd.qcelp” },{ “.qt”, “video/quicktime” },{ “.qti”, “image/x-quicktime” },{ “.qtif”, “image/x-quicktime” },{ “.r3t”, “text/vnd.rn-realtext3d” },{ “.ra”, “audio/x-pn-realaudio” },{ “.ram”, “audio/x-pn-realaudio” },{ “.rar”, “application/octet-stream” },{ “.ras”, “image/x-cmu-raster” },{ “.rc”, “text/plain” },{ “.rdf”, “application/rdf+xml” },{ “.rf”, “image/vnd.rn-realflash” },{ “.rgb”, “image/x-rgb” },{ “.rlf”, “application/x-richlink” },{ “.rm”, “audio/x-pn-realaudio” },{ “.rmf”, “audio/x-rmf” },{ “.rmi”, “audio/mid” },{ “.rmm”, “audio/x-pn-realaudio” },{ “.rmvb”, “audio/x-pn-realaudio” },{ “.rnx”, “application/vnd.rn-realplayer” },{ “.roff”, “application/x-troff” },{ “.rp”, “image/vnd.rn-realpix” },{ “.rpm”, “audio/x-pn-realaudio-plugin” },{ “.rt”, “text/vnd.rn-realtext” },{ “.rte”, “x-lml/x-gps” },{ “.rtf”, “application/rtf” },{ “.rtg”, “application/metastream” },{ “.rtx”, “text/richtext” },{ “.rv”, “video/vnd.rn-realvideo” },{ “.rwc”, “application/x-rogerwilco” },{ “.s3m”, “audio/x-mod” },{ “.s3z”, “audio/x-mod” },{ “.sca”, “application/x-supercard” },{ “.scd”, “application/x-msschedule” },{ “.sct”, “text/scriptlet” },{ “.sdf”, “application/e-score” },{ “.sea”, “application/x-stuffit” },{ “.setpay”, “application/set-payment-initiation” },{ “.setreg”, “application/set-registration-initiation” },{ “.sgm”, “text/x-sgml” },{ “.sgml”, “text/x-sgml” },{ “.sh”, “application/x-sh” },{ “.shar”, “application/x-shar” },{ “.shtml”, “magnus-internal/parsed-html” },{ “.shw”, “application/presentations” },{ “.si6”, “image/si6” },{ “.si7”, “image/vnd.stiwap.sis” },{ “.si9”, “image/vnd.lgtwap.sis” },{ “.sis”, “application/vnd.symbian.install” },{ “.sit”, “application/x-stuffit” },{ “.skd”, “application/x-Koan” },{ “.skm”, “application/x-Koan” },{ “.skp”, “application/x-Koan” },{ “.skt”, “application/x-Koan” },{ “.slc”, “application/x-salsa” },{ “.smd”, “audio/x-smd” },{ “.smi”, “application/smil” },{ “.smil”, “application/smil” },{ “.smp”, “application/studiom” },{ “.smz”, “audio/x-smd” },{ “.snd”, “audio/basic” },{ “.spc”, “application/x-pkcs7-certificates” },{ “.spl”, “application/futuresplash” },{ “.spr”, “application/x-sprite” },{ “.sprite”, “application/x-sprite” },{ “.sdp”, “application/sdp” },{ “.spt”, “application/x-spt” },{ “.src”, “application/x-wais-source” },{ “.sst”, “application/vnd.ms-pkicertstore” },{ “.stk”, “application/hyperstudio” },{ “.stl”, “application/vnd.ms-pkistl” },{ “.stm”, “text/html” },{ “.svg”, “image/svg+xml” },{ “.sv4cpio”, “application/x-sv4cpio” },{ “.sv4crc”, “application/x-sv4crc” },{ “.svf”, “image/vnd” },{ “.svg”, “image/svg+xml” },{ “.svh”, “image/svh” },{ “.svr”, “x-world/x-svr” },{ “.swf”, “application/x-shockwave-flash” },{ “.swfl”, “application/x-shockwave-flash” },{ “.t”, “application/x-troff” },{ “.tad”, “application/octet-stream” },{ “.talk”, “text/x-speech” },{ “.tar”, “application/x-tar” },{ “.taz”, “application/x-tar” },{ “.tbp”, “application/x-timbuktu” },{ “.tbt”, “application/x-timbuktu” },{ “.tcl”, “application/x-tcl” },{ “.tex”, “application/x-tex” },{ “.texi”, “application/x-texinfo” },{ “.texinfo”, “application/x-texinfo” },{ “.tgz”, “application/x-compressed” },{ “.thm”, “application/vnd.eri.thm” },{ “.tif”, “image/tiff” },{ “.tiff”, “image/tiff” },{ “.tki”, “application/x-tkined” },{ “.tkined”, “application/x-tkined” },{ “.toc”, “application/toc” },{ “.toy”, “image/toy” },{ “.tr”, “application/x-troff” },{ “.trk”, “x-lml/x-gps” },{ “.trm”, “application/x-msterminal” },{ “.tsi”, “audio/tsplayer” },{ “.tsp”, “application/dsptype” },{ “.tsv”, “text/tab-separated-values” },{ “.ttf”, “application/octet-stream” },{ “.ttz”, “application/t-time” },{ “.txt”, “text/plain” },{ “.uls”, “text/iuls” },{ “.ult”, “audio/x-mod” },{ “.ustar”, “application/x-ustar” },{ “.uu”, “application/x-uuencode” },{ “.uue”, “application/x-uuencode” },{ “.vcd”, “application/x-cdlink” },{ “.vcf”, “text/x-vcard” },{ “.vdo”, “video/vdo” },{ “.vib”, “audio/vib” },{ “.viv”, “video/vivo” },{ “.vivo”, “video/vivo” },{ “.vmd”, “application/vocaltec-media-desc” },{ “.vmf”, “application/vocaltec-media-file” },{ “.vmi”, “application/x-dreamcast-vms-info” },{ “.vms”, “application/x-dreamcast-vms” },{ “.vox”, “audio/voxware” },{ “.vqe”, “audio/x-twinvq-plugin” },{ “.vqf”, “audio/x-twinvq” },{ “.vql”, “audio/x-twinvq” },{ “.vre”, “x-world/x-vream” },{ “.vrml”, “x-world/x-vrml” },{ “.vrt”, “x-world/x-vrt” },{ “.vrw”, “x-world/x-vream” },{ “.vts”, “workbook/formulaone” },{ “.wav”, “audio/x-wav” },{ “.wax”, “audio/x-ms-wax” },{ “.wbmp”, “image/vnd.wap.wbmp” },{ “.wcm”, “application/vnd.ms-works” },{ “.wdb”, “application/vnd.ms-works” },{ “.web”, “application/vnd.xara” },{ “.wi”, “image/wavelet” },{ “.wis”, “application/x-InstallShield” },{ “.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” },{ “.wmlscript”, “text/vnd.wap.wmlscript” },{ “.wmv”, “audio/x-ms-wmv” },{ “.wmx”, “video/x-ms-wmx” },{ “.wmz”, “application/x-ms-wmz” },{ “.wpng”, “image/x-up-wpng” },{ “.wps”, “application/vnd.ms-works” },{ “.wpt”, “x-lml/x-gps” },{ “.wri”, “application/x-mswrite” },{ “.wrl”, “x-world/x-vrml” },{ “.wrz”, “x-world/x-vrml” },{ “.ws”, “text/vnd.wap.wmlscript” },{ “.wsc”, “application/vnd.wap.wmlscriptc” },{ “.wv”, “video/wavelet” },{ “.wvx”, “video/x-ms-wvx” },{ “.wxl”, “application/x-wxl” },{ “.x-gzip”, “application/x-gzip” },{ “.xaf”, “x-world/x-vrml” },{ “.xar”, “application/vnd.xara” },{ “.xbm”, “image/x-xbitmap” },{ “.xdm”, “application/x-xdma” },{ “.xdma”, “application/x-xdma” },{ “.xdw”, “application/vnd.fujixerox.docuworks” },{ “.xht”, “application/xhtml+xml” },{ “.xhtm”, “application/xhtml+xml” },{ “.xhtml”, “application/xhtml+xml” },{ “.xla”, “application/vnd.ms-excel” },{ “.xlc”, “application/vnd.ms-excel” },{ “.xll”, “application/x-excel” },{ “.xlm”, “application/vnd.ms-excel” },{ “.xls”, “application/vnd.ms-excel” },{ “.xlsx”, “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” },{ “.xlt”, “application/vnd.ms-excel” },{ “.xlw”, “application/vnd.ms-excel” },{ “.xm”, “audio/x-mod” },{“.xml”,”text/plain”},{“.xml”,”application/xml”},[1]{ “.xmz”, “audio/x-mod” },{ “.xof”, “x-world/x-vrml” },{ “.xpi”, “application/x-xpinstall” },{ “.xpm”, “image/x-xpixmap” },{ “.xsit”, “text/xml” },{ “.xsl”, “text/xml” },{ “.xul”, “text/xul” },{ “.xwd”, “image/x-xwindowdump” },{ “.xyz”, “chemical/x-pdb” },{ “.yz1”, “application/x-yz1” },{ “.z”, “application/x-compress” },{ “.zac”, “application/x-zaurus-zac” },{ “.zip”, “application/zip” },{ “.json”, “application/json” },    

2019-12-01 23:22:14 0 浏览量 回答数 0
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 企业信息查询 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 2020阿里巴巴研发效能峰会 企业建站模板 云效成长地图 高端建站 阿里云双十一主会场 阿里云双十一新人会场 1024程序员加油包 阿里云双十一拼团会场 场景化解决方案 阿里云双十一直播大厅