分享

Nginx http模块(十)

 thy 2009-07-24
 

Types

语法:types {。。。}
context
httpserverlocation

指定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-typesapplication/ocet-stream,会使用

Location /download/ {

Types {}

Default_type application/ocet-stream;

}

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多