2

I'm trying to use Cheyenne to serve a news feed and would like to ensure that files with the .feed extension are served as application/atom+xml. How do I configure Cheyenne to do this?

rgchris
  • 3,698
  • 19
  • 19

2 Answers2

2

Got it! In httpd.cfg in either the globals, default or host section (see docs), add this directive:

set-mime application/atom+xml .feed

or

set-mime application/atom+xml [.feed .atom]
rgchris
  • 3,698
  • 19
  • 19
  • I didn't know that there is set-mime directive in httpd.cfg file. Accept your own answer, and thanks for sharing it :) – endo64 Feb 19 '14 at 09:50
1

Could you change extension to .rsp instead and then generate the appropriate headers that way with the feed data as a data block inside the rsp script?

Graham Chiu
  • 4,856
  • 1
  • 23
  • 41