Forum Moderators: phranque
is there some option i can add somewhere to change this? i didnt mess with anything that i know of that would cause this behaviour.
running Apache 1.3.3x or something about there, its less than a month old version anyways.
Downside: The fix exposes your stylesheet to unauthorized access.
Also, consider this: How important is it that your custom error pages be styled? One school of design would say that if you already have an error, you do not want to introduce further dependencies and complications into the problem. I tend to think that way, and all of my custom error pages are "styled" with plain-old <font> tags and devoid of any images or other external dependencies in order to avoid this very problem. I keep my error-handlers dirt-simple and very short so that they are less likely to fail and further complicate the problem that invoked them.
Imagine the scenario where you mis-type the filename of a new, updated stylesheet on the server. So, that file goes 404-Not Found when requested by your pages. But if the 404 Error Document page also includes that stylesheet, then the 404 error page itself will cause a 404, and that's a real recursive mess.
One other approach that might work, but I haven't tried it: Instead of using an "HTML include" of <style type="text/css">@import url(mysite.css);</style>, you could use <style></style> tags around a direct SSI-include of the external style sheet. This would make the style sheet look "internal" to the error page, and so not invoke an additional authorization session.
Me, I go for simple... :)
Jim