【问题标题】:How to associate file extensions with MIME type with Cheyenne?如何将文件扩展名与 MIME 类型与 Cheyenne 相关联?
【发布时间】:2014-02-19 06:40:00
【问题描述】:

我正在尝试使用Cheyenne 来提供新闻提要,并希望确保以.feed 扩展名的文件作为application/atom+xml 提供。如何配置 Cheyenne 来执行此操作?

【问题讨论】:

    标签: webserver mime-types rebol cheyenne


    【解决方案1】:

    知道了!在 globalsdefaulthost 部分 (see docs) 的 httpd.cfg 中,添加以下指令:

    set-mime application/atom+xml .feed
    

    set-mime application/atom+xml [.feed .atom]
    

    【讨论】:

    • 我不知道 httpd.cfg 文件中有 set-mime 指令。接受你自己的答案,感谢分享:)
    【解决方案2】:

    您能否改为将扩展名更改为 .rsp,然后以这种方式生成适当的标头,并将提要数据作为 rsp 脚本中的数据块?

    【讨论】:

    • 肯定是在httpd.cfg中做到这一点的方法?
    猜你喜欢
    • 2011-02-04
    • 2010-11-11
    • 1970-01-01
    • 1970-01-01
    • 2011-11-03
    • 1970-01-01
    • 2010-10-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多