View previous topic :: View next topic |
Author |
Message |
poisoner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/929279144232352fbbe82.jpg)
Joined: 28 Jan 2005 Posts: 73 Location: /home/poisoner/
|
Posted: Fri Apr 29, 2005 5:51 pm Post subject: Apache dont read HTML code??? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kirchner n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/PowerPuffs/cartoon_powerpuff_blossom.gif)
Joined: 19 Nov 2004 Posts: 70 Location: Detroit, MI
|
Posted: Fri Apr 29, 2005 6:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
neuron Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/d946e5263cf3dddd25d4e.gif)
Joined: 28 May 2002 Posts: 2371
|
Posted: Fri Apr 29, 2005 7:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
steve_d555 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/47717210241a3bf7bdfc04.gif)
Joined: 07 Nov 2004 Posts: 458 Location: Belmont, Massachusetts
|
Posted: Fri Apr 29, 2005 7:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Fri Apr 29, 2005 7:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|