[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Follow-up Question: Serving web pages for local use only



On Wed, 2001-09-26 at 15:56, Steve Dondley wrote:
> Thanks to all who helped with my earlier post.  I got everything working but
> I'm still having a problem.
> 
> Background:
> I installed apache on my Linux box.  I am able to retrieve web pages with IE
> using my Windows machine.  Everything is cool there.
> 
> Problem:
> But when using NN, it pulls up the page, but only pulls up the raw HTML
> code.  It doesn't render it on the screen.  I'm guessing the Content-Type
> header is not getting added to the page by Apache.  Am I correct on this?
> 
> Question:
> How do I fix this?  I looked through the documentation but as total apache
> newbie didn't have any luck figuring this out.  Thanks.

At a guess, your file does not have a .html or .htm extension.  Remember
that Apache is case-sensitive and .HTML is not valid.

If this is true, rename the files to .html or (if you must use another
extension) add them to the MIME types mapping file.  The issue is that
IE tries to be clever when reading pages (which is a bad idea, as it
breaks many other sites) whereas Netscape believes what it is told (good
idea).  Apache is server files with an extension it doesn't recognize so
it simply saying "text" instead of "HTML".  IE looks at the content and
guesses it is HTML even though it was told to display it as text.

Ross Burton




Reply to: