Types
語(yǔ)法:types {。。。}
context:http,server,location
指定answer的擴展類(lèi)型和MIME-Type之間的對應。對一個(gè)MIME-type可以與多個(gè)expansions進(jìn)行對應。 默認使用的對應:
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:
對所有應答會(huì )展示的MIME-types“application/ocet-stream”,會(huì )使用
Location /download/ {
Types {}
Default_type application/ocet-stream;
}
聯(lián)系客服