You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rick Hobson <r....@reading.ac.uk> on 2007/11/02 13:41:34 UTC

[users@httpd] html not rendered in some browsers

Hi,

I have been running Apache 2.2 on SuSe 10.2 for several months without any 
problems.

Early yesterday evening all contact with the server was lost. This seems 
to have been a problem of some sort with networking rather than a problem 
with Apache2. The server is also running a Samba service and this couldn't 
be contacted either, nor could the machine be pinged.

The machine was rebooted (cleanly using the appropriate command) and there 
were no obvious errors as it started up. The Samba service was restored 
and seems to be working normally. Apache2 restarted without any errors. 
Network connections were restored and seem to be working normally.

However, none of the pages are now rendered in Firefox or Konqueror, they 
simply display the html, whereas IE6 renders the pages normally!!

The server is set up to parse both .html and .shtml so that I can use 
server side includes on all pages. These seem to be working in all 
browsers, the html code displayed by Firefox and Konqueror shows all the 
SSI's as part of the file and IE displays the pages as expected.

No alterations have been made to the server configuration so I can only 
assume something has become corrupted.

Does anyone have any idea where I should start looking? I'm baffled.

Rick Hobson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] html not rendered in some browsers

Posted by Joshua Slive <jo...@slive.ca>.
On Nov 2, 2007 8:41 AM, Rick Hobson <r....@reading.ac.uk> wrote:
> Hi,
>
> I have been running Apache 2.2 on SuSe 10.2 for several months without any
> problems.
>
> Early yesterday evening all contact with the server was lost. This seems
> to have been a problem of some sort with networking rather than a problem
> with Apache2. The server is also running a Samba service and this couldn't
> be contacted either, nor could the machine be pinged.
>
> The machine was rebooted (cleanly using the appropriate command) and there
> were no obvious errors as it started up. The Samba service was restored
> and seems to be working normally. Apache2 restarted without any errors.
> Network connections were restored and seem to be working normally.
>
> However, none of the pages are now rendered in Firefox or Konqueror, they
> simply display the html, whereas IE6 renders the pages normally!!

This is a very strong sign that the Content-Type headers emitted by
the server are incorrect. MSIE has a bad habit of ignoring these
headers and guessing at the content-type.

So check your AddType/DefaultType/TypesConfig directives in httpd.conf
and also look at the raw HTTP headers from the server for more clues:
http://wiki.apache.org/httpd/WatchingHttpHeaders

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: html not rendered in some browsers - problem solved

Posted by Rick Hobson <r....@reading.ac.uk>.
I assume that was what was happening. Presumably the page headers were 
incorrect because of the corruption of /etc/mime.types but good old IE 
doesn't care about headers anyway, it's .html so it must be html! 
Security?

Rick

On Fri, 2 Nov 2007, Mark A. Craig wrote:

> Now just to reinforce the moral of this story in my own mind, the reason for 
> this was because of IE's legendary habit of ignoring the MIME types of 
> content and looking at the file extensions to decide what to do with it?
>
> Mark
>
> -------- Original Message  --------
> Subject: [users@httpd] Re: html not rendered in some browsers - problem 
> solved
> From: Rick Hobson <r....@reading.ac.uk>
> To: users@httpd.apache.org
> Date: Friday, November 02, 2007 06:00:29 AM
>
>> Hi,
>> 
>> Problem solved
>> 
>> /etc/mime.types had become corrupted and was of zero length. I have 
>> replaced it with a copy from another machine running the same O/S, 
>> restarted the browser and all seems well.
>> 
>> Apologies for creating unnecessary noise on the list.
>> 
>> Rick
>> 
>> 
>> On Fri, 2 Nov 2007, Rick Hobson wrote:
>> 
>>> Hi,
>>> 
>>> I have been running Apache 2.2 on SuSe 10.2 for several months without any 
>>> problems.
>>> 
>>> Early yesterday evening all contact with the server was lost. This seems 
>>> to have been a problem of some sort with networking rather than a problem 
>>> with Apache2. The server is also running a Samba service and this couldn't 
>>> be contacted either, nor could the machine be pinged.
>>> 
>>> The machine was rebooted (cleanly using the appropriate command) and there 
>>> were no obvious errors as it started up. The Samba service was restored 
>>> and seems to be working normally. Apache2 restarted without any errors. 
>>> Network connections were restored and seem to be working normally.
>>> 
>>> However, none of the pages are now rendered in Firefox or Konqueror, they 
>>> simply display the html, whereas IE6 renders the pages normally!!
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: html not rendered in some browsers - problem solved

Posted by "Mark A. Craig" <ma...@gmail.com>.
Now just to reinforce the moral of this story in my own mind, the reason for 
this was because of IE's legendary habit of ignoring the MIME types of content 
and looking at the file extensions to decide what to do with it?

Mark

-------- Original Message  --------
Subject: [users@httpd] Re: html not rendered in some browsers - problem solved
From: Rick Hobson <r....@reading.ac.uk>
To: users@httpd.apache.org
Date: Friday, November 02, 2007 06:00:29 AM

> Hi,
> 
> Problem solved
> 
> /etc/mime.types had become corrupted and was of zero length. I have 
> replaced it with a copy from another machine running the same O/S, 
> restarted the browser and all seems well.
> 
> Apologies for creating unnecessary noise on the list.
> 
> Rick
> 
> 
> On Fri, 2 Nov 2007, Rick Hobson wrote:
> 
>> Hi,
>>
>> I have been running Apache 2.2 on SuSe 10.2 for several months without 
>> any problems.
>>
>> Early yesterday evening all contact with the server was lost. This 
>> seems to have been a problem of some sort with networking rather than 
>> a problem with Apache2. The server is also running a Samba service and 
>> this couldn't be contacted either, nor could the machine be pinged.
>>
>> The machine was rebooted (cleanly using the appropriate command) and 
>> there were no obvious errors as it started up. The Samba service was 
>> restored and seems to be working normally. Apache2 restarted without 
>> any errors. Network connections were restored and seem to be working 
>> normally.
>>
>> However, none of the pages are now rendered in Firefox or Konqueror, 
>> they simply display the html, whereas IE6 renders the pages normally!!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: html not rendered in some browsers - problem solved

Posted by Rick Hobson <r....@reading.ac.uk>.
Hi,

Problem solved

/etc/mime.types had become corrupted and was of zero length. I have 
replaced it with a copy from another machine running the same O/S, 
restarted the browser and all seems well.

Apologies for creating unnecessary noise on the list.

Rick


On Fri, 2 Nov 2007, Rick Hobson wrote:

> Hi,
>
> I have been running Apache 2.2 on SuSe 10.2 for several months without any 
> problems.
>
> Early yesterday evening all contact with the server was lost. This seems to 
> have been a problem of some sort with networking rather than a problem with 
> Apache2. The server is also running a Samba service and this couldn't be 
> contacted either, nor could the machine be pinged.
>
> The machine was rebooted (cleanly using the appropriate command) and there 
> were no obvious errors as it started up. The Samba service was restored and 
> seems to be working normally. Apache2 restarted without any errors. Network 
> connections were restored and seem to be working normally.
>
> However, none of the pages are now rendered in Firefox or Konqueror, they 
> simply display the html, whereas IE6 renders the pages normally!!
>
> The server is set up to parse both .html and .shtml so that I can use server 
> side includes on all pages. These seem to be working in all browsers, the 
> html code displayed by Firefox and Konqueror shows all the SSI's as part of 
> the file and IE displays the pages as expected.
>
> No alterations have been made to the server configuration so I can only 
> assume something has become corrupted.
>
> Does anyone have any idea where I should start looking? I'm baffled.
>
> Rick Hobson
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

-- 
__________________________________________________

Dr. R.J.Hobson
IT Manager/Learning Technology Co-ordinator
School of Chemistry, Food Biosciences and Pharmacy
University of Reading
RG6 6AD
0118 378 6375
__________________________________________________

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org