![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
|
Aside: if you really want to center everything, why not move align="center" to the <body> and save some bytes? |
#5
| |||||
| |||||
|
|
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? |
#6
| |||||
| |||||
|
|
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? Interestingly, I haven't tried it in IE. Hang on... |
|
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? |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. Was that my CSS file? Because I do occasionally have that problem. |
![]() |
| Thread Tools | |
| Display Modes | |
| |