ONLamp.com
oreilly.comSafari Books Online.Conferences.

FAQS
 FAQs
Apache FAQ
Linux FAQ
XML FAQ

Log in to particpate






   Apache FAQ > E. Configuration Questions
Question:  I'm using RedHat Linux and my .htm files are showing up as HTML source rather than being formatted!
Answer:

RedHat messed up and forgot to put a content type for .htm files into /etc/mime.types. Edit /etc/mime.types, find the line containing html and add htm to it. Then restart your httpd server:

kill -HUP `cat /var/run/httpd.pid`

Then clear your browsers' caches. (Many browsers won't re-examine the content type after they've reloaded a page.)


This FAQ is from Apache Server Frequently Asked Questions

Sponsored by: