rgchris
rgchris

Reputation: 3718

How to associate file extensions with MIME type with Cheyenne?

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?

Upvotes: 2

Views: 216

Answers (2)

rgchris
rgchris

Reputation: 3718

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]

Upvotes: 2

Graham Chiu
Graham Chiu

Reputation: 4886

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?

Upvotes: 1

Related Questions