404 Handler |
|
MIME Types: application/x-vnd.RHV.404
Methods: *
Priority: 10
Suggested Virtual Resources:
- VRes: pattern="*" type="application/x-vnd.RHV.404" real=false src="404.html";
This should be the last virtual resource for each host!
Virtual Resource Extras:
- src - The virtual path to the template document. The default src is "404.html" if not specified.
The 404 Handler is used to display a more meaningful error message than
"404 File Not Found" when a requested resource could not be located. It uses a template
HTML document with SSI like inline tags to create the error message returned to the client.
Robin Hood includes a simple template HTML document
(located in the "server" subfolder of the Robin Hood directory) for you to use if you wish. The
following inline commands are supported:
- <!--#path--> - The virtual path name of the requested resource.
- <!--#leaf--> - The name of the requested resource.
- <!--#host--> - The virtual host name.
- <!--#referer--> - The URL which refered to the missing resource or
"Unspecified Source" if not specified in the request.
- <!--#referer-host--> - The host name of the refering host or "Unspecified Host"
if not specified in the request.
This add-on module is probably a good starting point for writing your own add-on
modules. The code is well commented and it's relatively simple.
Robin Hood Web Server for BeOS
Copyright © 1999-2001
The Robin Hood Development Team (see Revision History for details)
BeOS is a registered trademark of Be Inc.