Installation guide
122 Chapter 13. Apache Configuration
Figure 13-3. Site Configuration
The entries listed in the Directory Page Search List define the DirectoryIndex directive.
The DirectoryIndex is the default page served by the server when a user requests an index
of a directory by specifying a forward slash (/) at the end of the directory name.
For example, when a user requests the page http://your_domain/this_directory/,
they are going to get either the DirectoryIndex page if it exists, or a server-generated di-
rectory list. The server will try to find one of the files listed in the DirectoryIndex directive
and will return the first one it finds. If it does not find any of these files and if Options
Indexes is set for that directory, the server will generate and return a list, in HTML format,
of the subdirectories and files in the directory.
Use the Error Code section to configure Apache to redirect the client to a local or external
URL if the event of a problem or error. This option corresponds to the ErrorDocument di-
rective. If a problem or error occurs when a client tries to connect to the Apache Web server,
the default action is to display the short error message shown in the Error Code column. To
override this default configuration, select the error code and click the Edit button. Choose
Default to display the default short error message. Choose URL to redirect the client to an
external URL and enter a complete URL including the http:// in the Location field. Choose
File to redirect the client to an internal URL and enter a file location under the document root
for the Web server. The location must begin the a slash (/) and be relative to the Document
Root.
For example, to redirect a 404 Not Found error code to a Web page that you created in a
file called 404.html, copy 404.html to DocumentRoot/errors/404.html. In this case,
DocumentRoot is the Document Root directory that you have defined (the default is
/var/www/html). Then, choose File as the Behavior for 404 - Not Found error code and
enter /errors/404.html as the Location.
From the Default Error Page Footer menu, you can choose one of the following options:
• Show footer with email address — Display the default Apache footer at the bottom of
all error pages along with the email address of the website maintainer specified by the