Sun Java System Web Server 7.0 Administrator's Guide

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).