◆ types:
1、功能:
文件拓展名和MIME-types类型映射表
2、官方解释:
Directive assigns the correspondence of expansion and MIME-types of answers.
To one MIME- type can correspond several expansions.
By default it is used these correspondences
示例:
types {
text/html html;
image/gif gif;
image/jpeg jpg;
}
完整的映射表在conf/mime.types文件中:
include mime.types;
◆ default_type
当在标准的MIME映射表中无法找到对应的映射关系时,使用默认的default MIME-type
default_type application/octet-stream;
◆ MIME
Multipurpose Internet Mail Extensions,描述消息内容类型的因特网标准。MIME 消息能包含文本、图像、音频、视频以及其他应用程序专用的数据
MIME Type经过IETF组织协商,以 RFC 的形式作为建议的标准发布在网上,大多数的 Web 服务器和用户代理都支持这个规范 (Email 附件的类型也是通过 MIME Type 指定的)。通常只有一些在互联网上获得广泛应用的格式才会获得一个 MIME Type,如果是某个客户端自己定义的格式,一般只能以 application/x- 开头。
原