404 page

404 page

Post by matt » Thu, 31 Aug 2000 04:00:00



Where can I specify with Apache which HTML page send on 404 eror ?
 
 
 

404 page

Post by Bill Mosele » Thu, 31 Aug 2000 04:00:00



Quote:> Where can I specify with Apache which HTML page send on 404 eror ?

ErrorDocument

--
Bill Moseley

 
 
 

404 page

Post by matt » Thu, 31 Aug 2000 04:00:00


But it doesn't work with IE




> > Where can I specify with Apache which HTML page send on 404 eror ?

> ErrorDocument

> --
> Bill Moseley

 
 
 

404 page

Post by Christoph Voge » Thu, 31 Aug 2000 04:00:00


We're using several user defined ErrorDocuments on our site and ist works
perfectly as it should but using ErrorDocument 401 /error.php3 prevents
browser's dialog box to enter login and pwd from being displayed. All
ErrorDocument directives refer to the same document.
Anyone had the same problem and knows how to solve it?

Thanks in advance,

Christoph Vogel

 
 
 

404 page

Post by Alan J. Flavel » Thu, 31 Aug 2000 04:00:00



> But it doesn't work with IE

Wrong.  Well, there's a grain of truth in what you say, but "doesn't
work" is an exaggeration.  Both the reader and the author have
ways of dissuading IE to play stupid.

Oh well, what more can one expect from upside-down fullquoters...

 
 
 

404 page

Post by Christoph Voge » Thu, 31 Aug 2000 04:00:00




Quote:> But it doesn't work with IE

Read http://www.apacheweek.com/issues/99-04-09:

"The first new "feature" is that MSIE 5 may replace a site's own error
messages with its in-built error pages. This occurs if the error page from
the site is less than a particular size. For most errors, this is 512 bytes.
If the error page from the site is more than 512 bytes, MSIE 5 will display
the site's error message, otherwise it will not display it. For a few
statuses (403, 405 and 410), the cut-off size is 256. The solution to this
problem is to ensure that all error pages are greater than 512 bytes.
However note that most of Apache's built in error messages will be lesss
than 512 bytes, so the only way to ensure that viewers see the site's real
error pages is to use ErrorDocument. Microsoft explain how to use the
registry or IE's options to turn off this "feature"."

If your error document's size fits, it also works with IE. The problem is
specific to IE5, I think.

 
 
 

404 page

Post by matt » Thu, 31 Aug 2000 04:00:00


my document's size is more than 1ko !and it still does'n t work
IE still display it's own message
 
 
 

404 page

Post by Christoph Voge » Thu, 31 Aug 2000 04:00:00




Quote:> my document's size is more than 1ko !and it still does'n t work
> IE still display it's own message

How do you refer to the error document in your httpd.conf?
 
 
 

404 page

Post by Craig Keefne » Thu, 31 Aug 2000 04:00:00



> my document's size is more than 1ko !and it still does'n t work
> IE still display it's own message

what version ie?  i use 5.5 and whether 404 or 401 or 300byte or
2k, my IE uses the right page.

craig

 
 
 

404 page

Post by Jan Roland Eriksso » Thu, 31 Aug 2000 04:00:00


On Wed, 30 Aug 2000 14:14:57 GMT, in comp.infosystems.www.servers.unix


>But it doesn't work with IE

It does if your 404 page file size is above 512 bytes.
(don't ask me, ask MS how they came up with that)

--

 
 
 

404 page

Post by evan.co.. » Thu, 31 Aug 2000 04:00:00



>Where can I specify with Apache which HTML page send on 404 eror ?

Most of the other posts seemed to be bogged down in IE versus Netscape
versus whatever. Who cares.

All you need to do is add the following lines to your httpd.conf file:

ErrorDocument 404 http://name.of.server/errordocs/404.html
ErrorDocument 403 http://name.of.server/errordocs/403.html
ErrorDocument 401 /errordocs/401.html          

Works 100% perfectly with IE, Netscape, and everything else I've
tried.

Simply create documents entitled 404.html, 403.html and so forth,
stick them in a directory called errordocs which is a directory off
the root server directory, and add these to httpd.conf. Reboot the
daemon, and away it goes. There is really nothing particular complex
here.

 
 
 

404 page

Post by Christoph Voge » Fri, 01 Sep 2000 08:29:06




Quote:> Most of the other posts seemed to be bogged down in IE versus Netscape
> versus whatever. Who cares.

But why do we care about webservers? Maybe there exist browsers? ;-)
 
 
 

404 page

Post by matt » Fri, 01 Sep 2000 15:36:46


Quote:

> How do you refer to the error document in your httpd.conf?

ErrorDocument 404 /missing.html
and missing.html's size is above 512 bytes
 
 
 

1. IE shows 404 page for 404 status response

After reading the subject, I'm sure you're thinking "duh...", but hear me
out.What I'm trying to do is make a custom error page, so instead of 404
errors the user sees my custom made error page. In netscape, it returns my
custom page and all works great. Then I look at it in IE5 and I see the same
bland 404 document I've seen a million times (This is the windows 404
document, not something apache returned to it). I guess what happens is IE
sees "status 404" and says "Oh, well I'll display my 404 document then". The
end result is IE users aren't seeing my custom 404 page.

Is there any way to force apache to NOT return the 404 status when a 404
error occurs, and instead just silently display my custom page like it was
the one requested?

LKembel

2. Printing from Sol 2.5 - Banner

3. Setting the 404 page?

4. PPP and linux

5. APACHE: User Defined 404 Pages

6. Real Audio 2.0 + Linux

7. Can Redirect 404 Page not found error to Real Application?

8. can't build mod_python

9. E-mail and 404 pages

10. Apache: User Controlled 404 Page?

11. Setup Custom 404 Error page

12. 404 Error, yet page is found...

13. Apache 1.3 : Linking to a specific page when "HTTP 404 - File not found"