Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache dont read HTML code???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
poisoner
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: /home/poisoner/

PostPosted: Fri Apr 29, 2005 5:51 pm    Post subject: Apache dont read HTML code??? Reply with quote

Before i have no problems with my apache server, but after one "emerge -uD world", my apache was updated, and not working correctly.

My index.html
Code:
<html>

<table>
<tr><td>TEST</td></tr>
</table>

</html>



This is what i see in the browser:
Code:
<html>

<table>
<tr><td>TEST</td></tr>
</table>

</html>


Why apache dont translate HTML code?
_________________
Buzly.com - All videos in one place
IRC Logs Archive
Back to top
View user's profile Send private message
kirchner
n00b
n00b


Joined: 19 Nov 2004
Posts: 70
Location: Detroit, MI

PostPosted: Fri Apr 29, 2005 6:04 pm    Post subject: Reply with quote

I'm no Apache expert, but I'd guess that the server is sending an incorrect content-type in the header. Look at your configuration to make sure that the content-type being sent by default is text/html.
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Fri Apr 29, 2005 7:04 pm    Post subject: Reply with quote

it's not apache's job to do the formating, it's your browser, however if apache tells your browser it's clear text, your browser will decode it as plain text.
Back to top
View user's profile Send private message
steve_d555
Guru
Guru


Joined: 07 Nov 2004
Posts: 458
Location: Belmont, Massachusetts

PostPosted: Fri Apr 29, 2005 7:16 pm    Post subject: Reply with quote

the proper format for HTML is to also have a DOCTYPE decleration at the top plus having head and body tags. Then try to see it in your browser.
_________________
rubyforums | blog | boxwhore
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri Apr 29, 2005 7:43 pm    Post subject: Reply with quote

kirchner wrote:
I'm no Apache expert, but I'd guess that the server is sending an incorrect content-type in the header. Look at your configuration to make sure that the content-type being sent by default is text/html.

I'm no expert either, but I DO have 2 servers running quite nicely.
kirchner is right. Apache doesn't understand HTML, it just passes it on as the text it received. What is SHOULD do is tell the browser that the type of content is html, so the browser knows that it should render it instead of, eg, saving it as a file/try to render an image.

Just a guess: did you change the config-files a lot? Cause the file-system-layout of apache2 recently changed. it moved from /etc/apache2/conf to /etc/apache2. Maybe you are including non-existing files? What does the error-log give?

The settings you should look for are "AddType" and maybe the mime-magic things.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum