ERROR PAGES


You can modify the html pages that are sent when an error occurs.

The default files are contained in the system directory used by the host and can be replaced with your own files. Different Virtual Hosts can use different error files.

The pages must not contain any references to other documents in the system directory.
Every request to will be mapped to the system directory. So a request to http://sys/file.html will send the file file.html contained in the system directory for the virtual host.

Sample 404 Error
The famous 404 error happens when a file cannot be found on the server.


To define a personalized error page file for a virtual host you can add a line like the following in the primary virtual host security file. Defining a different error file, the server will look in the web directory instead of the system one. If no personalized files are used the server will look for the file x.html in the system directory, where x is the error number(for example: 404.html). A primary security file for a virtual host is the security file that is located in the main directory of the virtual host. If the error is not specified then the default in the system directory will be used, if this file doesn't exist too the error will be communicated trough the HTTP error message.
<ERROR FILE="error404.html" ID="404" />



For more information on the error pages consult the RFC2068 document found at  www.w3c.org.