Forum Moderators: mack

Message Too Old, No Replies

Seeing the content of index.htm in code mode

         

kevinm2

9:38 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



I have setup apache, but what I getting is the actual html code not the web page in design more. what am I doing wrong?

mack

9:39 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



What operating system are you running?

Mack.

kevinm2

9:42 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



Red Hat 7.2, Apache 2.0.5.

mack

9:53 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Did you set the default home document in httpd.conf

Also did you specify the correct location for www root.

I know these are things that you will have though of, just point then out just incase.

Mack.

kevinm2

9:54 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



What causes the httpd.conf to show the code contents of index.htm (any other *.htm file) versus atcual web page or htm page?

kevinm2

9:57 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



Sorry Mack,
Yes I have.
The path is available but when I type URL "http://www.domain.com/index.htm", I see the code content of html.

kevinm2

10:12 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



Views as text not html.

jdMorgan

10:22 pm on Aug 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try the server headers checker [webmasterworld.com], and look for the Content-Type header. It should read:

Content-Type: text/html

when you fetch your index page.

Jim