title: Apache serving wrong Content-Type for Rails files
body: <p>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?</p>
  
  <pre><code>DefaultType text/plain
  
  &lt;IfModule mime_module&gt;
      TypesConfig /etc/apache2/mime.types
      AddType application/x-compress .Z
      AddType application/x-gzip .gz .tgz
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Not sure if it's relevant, but here is the file in my sites-available folder:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerName app.com
    ServerAlias www.app.com
  
    DocumentRoot /home/demo/public_html/app/public
  
    RewriteEngine On
  
    &lt;Proxy balancer://mongrel1&gt;
      BalancerMember http://127.0.0.1:5000
      BalancerMember http://127.0.0.1:5001
      BalancerMember http://127.0.0.1:5002
    &lt;/Proxy&gt;
  
    # Redirect all non-static requests to thin
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ balancer://mongrel1%{REQUEST_URI} [P,QSA,L]
  
    ProxyPass / balancer://mongrel1/
    ProxyPassReverse / balancer://mongrel1/
    ProxyPreserveHost on
  
    &lt;Proxy *&gt;
      Order deny,allow
      Allow from all
    &lt;/Proxy&gt;
  
    # Custom log file locations
    ErrorLog  /home/demo/public_html/app/log/error.log
    CustomLog /home/demo/public_html/app/log/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>EDIT: I just created another Rails app from scratch, and the default Rails "Welcome aboard" page seems to be displaying correctly. I'm guessing this means something is messed up with my other Rails installation...</p>