Java Web Server

File Aliases


Contents / Administrator Docs / Developer Docs / Index / AdminTool Contents

This document has the following sections:

The File Alias page allows you to define pointers from requested filenames to filenames on your machine.

For example, suppose you are developing a set of web pages, and you want a quick way to access them without having to enter long URLs. If your machine is named nightsky and your user name is galileo, and one of the files you wanted to access was moon.html:

The real path might be:

doc_root/galileo/march97/planets/visible/moon.html

The URL would then be:

http://nightsky:8080/galileo/march97/planets/visible/moon.html

To shorten it, you could use the following alias settings:

Alias Pathname:/shortcut
Full Pathname: /~galileo/march97/planets/visible

Now to connect to the file moon.html using the alias, type the following URL:

http://nightsky:8080/shortcut/moon.html

Settings

Alias Pathname
The pathname of the requested file or directory.

Full Pathname
The actual pathname for the files you are using. Note that the files are relative to the document root (which is specified in the site setup screen), unless they are specified as absolute paths. For example, tmp would refer to doc_root/tmp, while /tmp would refer to /tmp.

Procedures

To Add a File Alias:

  1. Click Add.
  2. Enter the alias pathname.
  3. Enter the full pathname.
  4. Click Save.

To Delete a File Alias:

  1. Select the alias.
  2. Click Remove.
  3. Click Save.

To Modify a File Alias:

  1. Select an entry.
  2. Click Modify.
  3. Enter the new information.
  4. Press Return.
  5. Click Save.

Buttons

To make changes to the File Alias page and have those settings take affect, use the five buttons at the bottom of the screen. These are:

Note: If you Add, Modify, or Remove an alias pathname, you must Save before the changes take affect.


Top
java-server-feedback@java.sun.com
Copyright © 1997 Sun Microsystems, Inc.
All Rights Reserved.