Advanced server configuration

To display the advanced server configuration menu, open the console, select Server Configuration and press the Advanced… button.

The following subsections describe each advanced configuration option.

Server parameters

Select Server Parameters in the advanced server configuration menu to display the server parameters dialog.

The dialog includes the following fields:


Index files

When a browser asks for a URL that does not contain a filename, the server checks for the existence of each index file in the mapped directory. If none is found and automatic directory indexing is enabled, a directory listing is generated and sent to the browser. Otherwise, an error is reported.

To edit, remove or add index filenames, use the Index Files table in the Server Parameters dialog.

Example 4-1. index.htm and index.html as index files

Assume that index.html and index.htm are set as index filenames. If a browser asks for http://<your host name>:<server port>/hello/, the server checks if <documents path>/hello/index.html exists. If not, it checks if <documents path>/hello/index.htm exists. If so, it is sent to the browser. If not, a listing of the directory <documents path>/hello/ is generated and sent to the browser if automatic directory indexing is enabled. If it is disabled, the server replies with a forbidden error message.

MIME types

When the server sends a document to a browser, it also sends its MIME type. This information helps the browser to know what kind of file it is (HTML, ZIP, JPEG image, etc…) and what to do with (Display it, save it on the disk, launch a configured application to read it, etc…). Abyss Web Server comes with a preset list of common MIME types. To modify this list, select MIME Types in the advanced server configuration menu.

Use the displayed table to edit, remove or add MIME types. A MIME Type has the format type/subtype and is associated to one or more extensions separated by spaces.

Example 4-2. The text/html MIME type

HTML files have text/html as MIME type. By default, text/html is associated to extensions html and htm. As a consequence, when the server sends to a browser a document which extension is html or htm, it will also set the document's MIME type to text/html.

Aliases

Select Aliases in the advanced server configuration menu to display the aliases table.

If a URLs matches an alias' virtual path, the web server maps it to the alias' associated real path.

Use the displayed table to edit, remove or add aliases.

Example 4-3. Relative real path

Assume that there exists an alias which virtual path is /images and which real path is web/artwork. If a browser asks for http://<your host name>:<server port>/images/logo.jpg, the server maps the requested URL to the file <server root>/web/artwork/logo.jpg. The <server root> is added because the real path was relative.

Example 4-4. Absolute real path

Assume now that there exists an alias which virtual path is /images and which real path is /usr/local/web/artwork. If a browser asks for http://<your host name>:<server port>/images/logo.jpg, the server maps the requested URL to the file /usr/local/web/artwork/logo.jpg. The difference with the previous example is that the real path is absolute and not relative.

Custom error pages

With Abyss Web Server, you can override the standard error pages and replace them with yours. To do so, select Custom Error Pages in the advanced server configuration menu.

This dialog includes the following elements:



An error URL can be:



Note:: It is only relevant to set 4xx and 5xx error codes. Other error codes are handled internally in the web server and do not lead to displaying an error page.

Note:: When using a local URL that is a CGI script or an SSI page as a custom error page, the server operates an internal redirection and adds to the custom error page's environment variables all the faulty request environment variables prefixed with REDIRECT_. It adds also the special variable REDIRECT_STATUS which contains the status code of the faulty request. For more information, read "CGI environment variables" section in "CGI Scripts" chapter.

CGI parameters

To configure CGI scripts execution, select CGI Parameters in the advanced server configuration menu.

This dialog includes the following fields:



The dialog contains also the following tables:



For more information about CGI scripts, see "CGI Scripts" chapter.

SSI parameters

To configure SSI (Server Side Includes), select SSI Parameters in the advanced server configuration menu.

This dialog includes the following fields:



For more information about SSI, refer to "Server Side Includes" chapter.

Users and Groups

Select Users and Groups in the advanced server configuration menu to display the users and groups tables.

Use the displayed tables to edit, remove or add users and groups.

A user is defined by its name and its password. A group is defined by its name and its members which can be users and other groups.

Note:: The console hides automatically groups that can lead to circular references when editing a group.

Access Control

To restrict and manage the access to paths in your web site, select Access Control in the advanced server configuration.

To edit, remove or add path access rules, use the displayed table.

The path access edition dialog contains the following fields:



Note:: If Deny Access To list is empty and the order is Deny/Allow, access is granted to all declared users and groups.

Copyright © 2001-2003 by Aprelium Technologies