Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Simple page loads once then appers as source -- why?

Reply
Thread Tools

Simple page loads once then appers as source -- why?

 
 
Mark Adams
Guest
Posts: n/a
 
      11-10-2005
Simple problem, but might mean a major misconfiguration in Apache.

I have a simple custom error page on my LAN which I have posted here on
another site for your reference (sans graphic)
http://adamslan.shyper.com/302.html

The problem with this file, and I haven't seen it with any other files,
is that this thing will display correctly one time after it has been
edited or Apache has been restarted. Thereafter, it displays only the
source code.

I haven't seen anything like this anywhere in Google and I'm not seeing
anything related to it in any of the logs. The page is just about as
simple as html gets. Can anybody tell me what might be happening?
--
Mark E. Adams, 2004 -- drop the "dot" to email me.
http://adamslan.shyper.com

CONSIDER: ===========---------,,,,,,,,,............. . . . . .
Microsoft's biggest and most dangerous contribution to the software
industry may be the degree to which it has lowered user expectations.
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      11-10-2005
In post <news:>,
Mark Adams said:

> I have a simple custom error page on my LAN which I have posted here on
> another site for your reference (sans graphic)
> http://adamslan.shyper.com/302.html
>
> The problem with this file, and I haven't seen it with any other files,
> is that this thing will display correctly one time after it has been
> edited or Apache has been restarted. Thereafter, it displays only the
> source code.


many moons ago i remember a similar problem with a css file sometimes
getting sent with the correct mime and other times getting sent with a
text/plain mime but no solution was offered. you're screwed.

--
l i t t l e v o i c e s
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      11-10-2005
Mark Adams wrote:

> Simple problem, but might mean a major misconfiguration in Apache.
>
> I have a simple custom error page on my LAN which I have posted here
> on another site for your reference (sans graphic)
> http://adamslan.shyper.com/302.html
>
> The problem with this file, and I haven't seen it with any other
> files, is that this thing will display correctly one time after it
> has been edited or Apache has been restarted. Thereafter, it
> displays only the source code.


Works fine for me (Firefox) even after refreshing it several times.

> I haven't seen anything like this anywhere in Google and I'm not
> seeing anything related to it in any of the logs. The page is just
> about as simple as html gets. Can anybody tell me what might be
> happening?


Aside: if you really want to center everything, why not move
align="center" to the <body> and save some bytes?

--
-bts
-Warning: I brake for lawn deer
 
Reply With Quote
 
Mark Adams
Guest
Posts: n/a
 
      11-10-2005
brucie wrote:
> many moons ago i remember a similar problem with a css file sometimes
> getting sent with the correct mime and other times getting sent with a
> text/plain mime but no solution was offered. you're screwed.
>

Okay! Thanks Brucie.

--
Mark E. Adams, 2004 -- drop the "dot" to email me.
http://adamslan.shyper.com

CONSIDER: ===========---------,,,,,,,,,............. . . . . .
"The urge to destroy is also a creative urge."
-- Bakunin
[ed. note - I would say: The urge to destroy may sometimes be a creative
urge.]
 
Reply With Quote
 
Mark Adams
Guest
Posts: n/a
 
      11-10-2005
Beauregard T. Shagnasty wrote:
> Mark Adams wrote:
>
>
>>Simple problem, but might mean a major misconfiguration in Apache.
>>
>>I have a simple custom error page on my LAN which I have posted here
>>on another site for your reference (sans graphic)
>>http://adamslan.shyper.com/302.html
>>
>>The problem with this file, and I haven't seen it with any other
>>files, is that this thing will display correctly one time after it
>>has been edited or Apache has been restarted. Thereafter, it
>>displays only the source code.

>
>
> Works fine for me (Firefox) even after refreshing it several times.


Right, and it's going too from that server. The copy on my server on my
LAN, however, is not working. I may just load that page from the
Internet instead of my LAN, but I'd like to fix whatever is not working
here.

> Aside: if you really want to center everything, why not move
> align="center" to the <body> and save some bytes?
>


Thanks for the tip. I'll try it.
--
Mark E. Adams, 2004 -- drop the "dot" to email me.
http://adamslan.shyper.com

CONSIDER: ===========---------,,,,,,,,,............. . . . . .
Once upon a time, four AMPHIBIOUS HOG CALLERS attacked a family of
DEFENSELESS, SENSITIVE COIN COLLECTORS and brought DOWN their PROPERTY
VALUES!!
 
Reply With Quote
 
Alan J. Flavell
Guest
Posts: n/a
 
      11-10-2005

On Thu, 10 Nov 2005, Mark Adams wrote:

> Simple problem, but might mean a major misconfiguration in Apache.


Which apache would that be? See the next question.

> I have a simple custom error page on my LAN which I have posted here on
> another site for your reference (sans graphic)
> http://adamslan.shyper.com/302.html


Please make clear whether you are reporting misbehaviour on the site
where you are furnishing this thing for alt.html's inspection, or only
on the site which we haven't seen. If it's the latter, then I think
we have insufficient evidence to be able to tell you what's what.

> The problem with this file, and I haven't seen it with any other files, is
> that this thing will display correctly one time after it has been edited or
> Apache has been restarted. Thereafter, it displays only the source code.


Presumably you're not displaying this page for its own sake, but as a
custom error page? So, retrieving it for its own sake might not be a
comparable action to what happens when it's used as a custom error
page. How, exactly, are you using this thing - are you displaying it
*as* a custom 302 error page, or are you configuring the server's
redirection so that it's meant to redirect *to* this page? Or to put
it more simply, "please show us the relevant configuration lines".

Finally, since you haven't named a browser yet, the sceptics amongst
us are going to assume you only checked it in MSIE. How about being a
bit more specific about what you tried, with what, what you expected,
and what in fact you saw?

> I haven't seen anything like this anywhere in Google and I'm not
> seeing anything related to it in any of the logs. The page is just
> about as simple as html gets.


I wouldn't have thought that the details of the HTML are of the
slightest relevance. You yourself already suggested that this was an
Apache configuration problem. Apache isn't normally in the business
of looking inside the static files that you are serving-out: it
decides what to do with them on the basis of its configuration, and,
quite likely on their "filename extension" (if you'll pardon the
expression).

> Can anybody tell me what might be happening?


Anyone got a crystal ball?

good luck
 
Reply With Quote
 
Mark Adams
Guest
Posts: n/a
 
      11-10-2005
Alan J. Flavell wrote:
> On Thu, 10 Nov 2005, Mark Adams wrote:
>
>
>>Simple problem, but might mean a major misconfiguration in Apache.

>
>
> Which apache would that be? See the next question.
>
>
>>I have a simple custom error page on my LAN which I have posted here on
>>another site for your reference (sans graphic)
>>http://adamslan.shyper.com/302.html

>
>
> Please make clear whether you are reporting misbehaviour on the site
> where you are furnishing this thing for alt.html's inspection, or only
> on the site which we haven't seen. If it's the latter, then I think
> we have insufficient evidence to be able to tell you what's what.
>


Fair criticism Alan. The file that you are viewing at
http://adamslan.shyper.com is simply posted so that folks like you can
access the html. The problem behavior occurs on my local LAN which you
can't, and won't see. As near as I can tell the file show up reliably
from adamslan.shyper.com which implies to me that the code is fine and
this is an Apache config. error.

>
>>The problem with this file, and I haven't seen it with any other files, is
>>that this thing will display correctly one time after it has been edited or
>>Apache has been restarted. Thereafter, it displays only the source code.

>
>
> Presumably you're not displaying this page for its own sake, but as a
> custom error page? So, retrieving it for its own sake might not be a
> comparable action to what happens when it's used as a custom error
> page. How, exactly, are you using this thing - are you displaying it
> *as* a custom 302 error page, or are you configuring the server's
> redirection so that it's meant to redirect *to* this page? Or to put
> it more simply, "please show us the relevant configuration lines".


Correct. It is a redirection from squidGuard. It show up when invoked
by the last stanza of squidGuard's config file on my server
(IP=192.168.1.105):

acl {
default {
pass !ads !aggressive !audio-video !drugs !gambling !hacking
!porn !violence !warez all
redirect 302:http://192.168.1.105/302.html
}
}

It might be worth noting that I can't get anything to happen when I
invoke the serve by its hostname (i.e. http://shuttle/302.html). Now, I
just barely got squidGuard working and I'm totally new to it. From my
reading of the docs, this is an acceptable way to spark a custom error
page. If not, you're welcome to tip me to a better one.


> Finally, since you haven't named a browser yet, the sceptics amongst
> us are going to assume you only checked it in MSIE. How about being a
> bit more specific about what you tried, with what, what you expected,
> and what in fact you saw?
>

Interestingly, I haven't tried it in IE. Hang on...

Okay, it works under IE.

Interestingly, it works now under Firefox 1.0.7 and Konqueror 3.2.3 as
well. It does not work under Netscape 7.2. So, it is an intermittent
problem. Oh boy.

>
>>I haven't seen anything like this anywhere in Google and I'm not
>>seeing anything related to it in any of the logs. The page is just
>>about as simple as html gets.

>
>
> I wouldn't have thought that the details of the HTML are of the
> slightest relevance. You yourself already suggested that this was an
> Apache configuration problem. Apache isn't normally in the business
> of looking inside the static files that you are serving-out: it
> decides what to do with them on the basis of its configuration, and,
> quite likely on their "filename extension" (if you'll pardon the
> expression).
>

So you've got nothing.

>>Can anybody tell me what might be happening?

>
>
> Anyone got a crystal ball?


Chicken bones? Natural Voodoo? Anybody?

--
Mark E. Adams, 2004 -- drop the "dot" to email me.
http://adamslan.shyper.com

CONSIDER: ===========---------,,,,,,,,,............. . . . . .
Fourth Law of Revision:
It is usually impractical to worry beforehand about
interferences -- if you have none, someone will make one for you.
 
Reply With Quote
 
Mark Adams
Guest
Posts: n/a
 
      11-10-2005
Mark Adams wrote:
> Alan J. Flavell wrote:
>
>> On Thu, 10 Nov 2005, Mark Adams wrote:
>>
>>
>>> Simple problem, but might mean a major misconfiguration in Apache.

>>
>>
>>
>> Which apache would that be? See the next question.
>>
>>
>>> I have a simple custom error page on my LAN which I have posted here on
>>> another site for your reference (sans graphic)
>>> http://adamslan.shyper.com/302.html

>>
>>
>>
>> Please make clear whether you are reporting misbehaviour on the site
>> where you are furnishing this thing for alt.html's inspection, or only
>> on the site which we haven't seen. If it's the latter, then I think
>> we have insufficient evidence to be able to tell you what's what.
>>

>
> Fair criticism Alan. The file that you are viewing at
> http://adamslan.shyper.com is simply posted so that folks like you can
> access the html. The problem behavior occurs on my local LAN which you
> can't, and won't see. As near as I can tell the file show up reliably
> from adamslan.shyper.com which implies to me that the code is fine and
> this is an Apache config. error.
>
>>
>>> The problem with this file, and I haven't seen it with any other
>>> files, is
>>> that this thing will display correctly one time after it has been
>>> edited or
>>> Apache has been restarted. Thereafter, it displays only the source
>>> code.

>>
>>
>>
>> Presumably you're not displaying this page for its own sake, but as a
>> custom error page? So, retrieving it for its own sake might not be a
>> comparable action to what happens when it's used as a custom error
>> page. How, exactly, are you using this thing - are you displaying it
>> *as* a custom 302 error page, or are you configuring the server's
>> redirection so that it's meant to redirect *to* this page? Or to put
>> it more simply, "please show us the relevant configuration lines".

>
>
> Correct. It is a redirection from squidGuard. It show up when invoked
> by the last stanza of squidGuard's config file on my server
> (IP=192.168.1.105):
>
> acl {
> default {
> pass !ads !aggressive !audio-video !drugs !gambling !hacking
> !porn !violence !warez all
> redirect 302:http://192.168.1.105/302.html
> }
> }
>
> It might be worth noting that I can't get anything to happen when I
> invoke the serve by its hostname (i.e. http://shuttle/302.html). Now, I
> just barely got squidGuard working and I'm totally new to it. From my
> reading of the docs, this is an acceptable way to spark a custom error
> page. If not, you're welcome to tip me to a better one.
>
>
>> Finally, since you haven't named a browser yet, the sceptics amongst
>> us are going to assume you only checked it in MSIE. How about being a
>> bit more specific about what you tried, with what, what you expected,
>> and what in fact you saw?
>>

> Interestingly, I haven't tried it in IE. Hang on...
>
> Okay, it works under IE.
>
> Interestingly, it works now under Firefox 1.0.7 and Konqueror 3.2.3 as
> well. It does not work under Netscape 7.2. So, it is an intermittent
> problem. Oh boy.


And now I notice it's not working under Firefox 1.0.7 on my Windows
client. The same client it DOES work on under IE.

Frustrating.

--
Mark E. Adams, 2004 -- drop the "dot" to email me.
http://adamslan.shyper.com

CONSIDER: ===========---------,,,,,,,,,............. . . . . .
"What man has done, man can aspire to do."
-- Jerry Pournelle, about space flight
 
Reply With Quote
 
Duende
Guest
Posts: n/a
 
      11-10-2005
On 10 Nov 2005 brucie wrote in alt.html

>
> many moons ago


who were you mooning?

--
D?
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      11-11-2005
In post <news:Xns970A9532A1C30Hi@207.115.17.102>,
Duende said:

>> many moons ago


> who were you mooning?


everyone until my parol officer gets another complaint

--
l i t t l e v o i c e s
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - browser loads another page after home page Cindy Stuart Computer Support 4 04-29-2007 03:29 AM
My Page Load Event Is Firing More Then Once thedotnetarchitect@gmail.com ASP .Net 1 02-13-2006 01:08 AM
Resolved -- Re: Simple page displays once then shows only source!? Mark Adams HTML 0 11-13-2005 06:43 PM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM
2 401 errors then image loads! Anonymous Poster ASP .Net Security 0 07-19-2005 01:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57