title: Set MIME type for server
body: <p>i've seen a bunch of topics about setting the MIME types.</p>
  
  <p>But, no one helped me.</p>
  
  <p>He is my problem:</p>
  
  <p>I have a Rails website with bunch of video in .ogv and .mov formats, located in /public folder.
  I refer to these files in HTML5 video tag.</p>
  
  <p>There is no problem with .mov files, they are played nice in WebKit browsers.</p>
  
  <p>The problem is with .ogv.</p>
  
  <p>I think, it's because wrong MIME type for .ogv.</p>
  
  <p>Here is what i get for .mov (correct):</p>
  
  <pre><code>$ curl -I http:/mywebsite.com/video.mov
  
  HTTP/1.1 200 OK
  Date: Sun, 03 Apr 2011 19:57:41 GMT
  ETag: "4d98744c-1bb-87563c0"
  Last-Modified: Sun, 03 Apr 2011 13:21:16 GMT
  Content-Type: video/quicktime
  Content-Length: 443
  </code></pre>
  
  <p>And here is what i get for .ogv:</p>
  
  <pre><code>$ curl -I http://mywebsite.com/video.ogv
  
  HTTP/1.1 200 OK
  Date: Sun, 03 Apr 2011 19:22:20 GMT
  ETag: "4d987dcf-379884-81c533dc"
  Last-Modified: Sun, 03 Apr 2011 14:01:51 GMT
  Content-Type: application/octet-stream
  Content-Length: 3643524
  </code></pre>
  
  <p>Instead of "application/octet-stream" i need "video/ogg".</p>
  
  <p>I have a Mongrel server (no Apache as front-end), as i recently got to know. So, there is no way to use .htaccess.</p>
  
  <p>I need to set MIME-type for regular files, <strong>not</strong> responses from controller etc.</p>
  
  <p>I've tried several ways, described in my previous question: <a href="https://stackoverflow.com/questions/4204602/html-5-video-ogv-and-mime-types">HTML 5 video (ogv) and MIME types</a></p>
  
  <p>But i does't works. I still get "application/octet-stream".</p>
  
  <p>My Questions are:</p>
  
  <ol>
  <li><p>How can i set mime types for regular files, <strong>not</strong> responses from controller ?</p></li>
  <li><p>Does Mongrel serves files, located in /public directory, or something else ?</p></li>
  </ol>