Nginx http模块(十)

来源:百度文库 编辑:神马文学网 时间:2024/04/28 02:43:38
Types
语法:types {。。。}
context:http,server,location
指定answer的扩展类型和MIME-Type之间的对应。对一个MIME-type可以与多个expansions进行对应。 默认使用的对应:
Types {
Text/html   html;
Image/gif   gif;
Image/jpeg jpeg;
}
完善的映射表包含在conf/mime.types文件里
So that for that determined location's for all answers would reveal MIME- type "application/octet-stream", it is possible to use the following:
对所有应答会展示的MIME-types“application/ocet-stream”,会使用
Location /download/ {
Types {}
Default_type application/ocet-stream;
}