I'm using Ruby on Rails on the CentOS-server with apache 2.. But in some way the main from the website doesn't load. It pops up like a download, using the right contents. But it must be server as html. Other links inside the site will work fine (with the addition of a text/html type towards the .htaccess). Also, when being able to access the mongrel directly root does show up. Or after i put a index.html within the public folder from the rails application, it will get loaded too.

My .htaccess:

DefaultType text/html # added for the other pages to get them working, like /products
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule .* "{REQUEST_URI}" [P,QSA,L]

Rails version: 2.3.8
Mongrel version: 1.1.5
Apache version: 2..63

Because of a bug in mongrel_start, it had not been working correctly. This fixed the issue. Hope it's really a help for another person later on too.