Sun Java System Web Server 7.0 Administrator's Guide

Configuring Document Directories

The primary document directory (also called the document root) is the central directory where you store all the files you want to make available to remote clients.

You can create a document directory, which is in addition to the primary document directory. By doing this, you can let someone manage a group of documents without giving them access to your primary document root.

ProcedureTo Create a Document Directory

  1. Select the Configuration.

    Select the configuration from the configurations list. Click Configurations tab to get the available configurations.

  2. Select the Virtual Server.

    Select the virtual server for which you need to add a new document directory. Click Virtual Servers tab to get the list of configured virtual servers for the selected configuration.

  3. Click Content Handling > Document Directories tab.

  4. Click New button. Configure the following parameters:

    • URL Prefix — URI prefix that has to be mapped to a directory.

    • Directory Path — Absolute server path and a valid directory for storing documents.


    Note –

    Using CLI

    For creating a document directory through CLI, execute the following command.


    wadm> create-document-dir --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 
    --uri-prefix=/config1_uri --directory=../docs1

    See CLI Reference, create-document-dir(1).