Apache serving wrong Content-Type for Rails files

Posted by NudeCanalTroll on Stack Overflow See other posts from Stack Overflow or by NudeCanalTroll
Published on 2010-06-16T14:49:40Z Indexed on 2010/06/16 14:52 UTC
Read the original article Hit count: 248

Apache keeps serving up my Rails files with a Content-Type of 'text/plain' in the header. I have mod_mime installed, a mime.types files with all the correct MIME assignments, and the following code in my configuration. Any thoughts?

DefaultType text/plain

<IfModule mime_module>
    TypesConfig /etc/apache2/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about apache