Sun Java System Web Server 7.0 Update 4 Administrator's Guide

Adding a Virtual Server

ProcedureTo Add a Virtual Server

Before You Begin
  1. Select the configuration from which you will need to add a virtual server. You can select the configuration from the list of configuration shown in the Configurations tab.

  2. Click on the Virtual Servers tab > New button.

    A pop-up wizard page appears to guide you through the Virtual Server configuration process.

  3. From the wizard page, perform the following tasks:

    • Enter the new virtual server information:

      1. Enter a name to identify the new virtual server. The name can be alphanumeric and can also include period (.), dash (-) and underscore (_) characters.

      2. (Optional) Enter a list of hosts to be added to the new virtual server.

      3. (Optional) Enter the document root for the virtual server.

    • Select an HTTP listener for the newly configured virtual server. You can either choose an existing HTTP listener or create a new HTTP listener.

  4. The wizard summary page appears. To change the configuration, go back to the previous pages by clicking Previous. Click Finish to complete the new virtual server configuration process.

  5. The Results page appears. If you see any error, Configure the virtual server again by going back to the previous pages in the wizard.

    Note –

    Using CLI

    To add a virtual server through CLI, execute the following command:

    wadm> create-virtual-server --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 --config=config1 --document-root=../docs config1_vs_1

    See CLI Reference, create-virtual-server(1).