Web Servers General Talk - apache custom error page

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > January 2004 > apache custom error page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache custom error page
karen

2004-01-19, 6:31 am

hi,
(vital stats: freebsd, apache 1.3)
i noticed that if i put
ErrorDocument 404 http://www.google.com
in my httpd.conf file, then when i request a page that isn't there i
get redirected to google (as one would expect).

however, if i put
ErrorDocument 404 /my_custom_page.html
in my httpd.conf file, then i get the standard ugly windows "the page
cannot be found" mess. (and yes, i have checked, /my_custom_page.html
IS on the server, and it IS viewable if you browse directly to it.)

anyone have any idea what is up here?
thanks
-k
johannes m.r.

2004-01-19, 6:31 am

plaidthermos@hotmail.com (karen) wrote:
quote:

>hi,
>(vital stats: freebsd, apache 1.3)
>i noticed that if i put
>ErrorDocument 404 http://www.google.com
>in my httpd.conf file, then when i request a page that isn't there i
>get redirected to google (as one would expect).
>
>however, if i put
>ErrorDocument 404 /my_custom_page.html
>in my httpd.conf file, then i get the standard ugly windows "the page
>cannot be found" mess. (and yes, i have checked, /my_custom_page.html
>IS on the server, and it IS viewable if you browse directly to it.)



Wild guess: You're using MS Internet Explorer, your settings say "show
friendly http error messages" or something like that and your
my_custom_page.html is shorter than 512 bytes? Under these
circumstances MS IE won't display the custom error message..
As mentiond - just a guess
Regards,
johannes
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com