Sun Java System Web Server 7.0 Administrator's Guide

Managing Configurations

Creating a Configuration

In order to start using the web server, you need to create a Configuration.

To create a new Configuration, perform the following tasks:

  1. Click Configuration tab .

  2. Click New button

The wizard guides you through the settings available for creating a Configuration. The following sections provide a description of the fields available in wizard pages:

Step 1 – Set Configuration Information

This wizard page allows you to set the generic information for the new configuration

Set the following parameters in the wizard page:

Step 2 — Create a Listener for the Configuration

This wizard page allows you to set the HTTP listener properties for the new Configuration

Set the following parameters in the wizard page:

Step 3 — Configure Java, CGI and SHTML

This wizard page allows you to configure properties related to Java/CGI and SHTML.

Set the following parameters in the wizard page:

Step 4 — Create an Instance

This wizard page allows you to create an instance for the new Configuration.

Set the following parameters in the wizard page:


Note –

Using CLI

For creating a configuration through CLI, execute the following command:


wadm> create-config --user=admin --password-file=admin.pwd 
--host=serverhost --port=8989 --http-port=8800 --server-user=user 
--server-name=servername config1

config1 is the name of the new configuration.

See CLI Reference, create-config(1).


Duplicating a Server Configuration

You can copy a server configuration and create a new configuration. The newly copied configuration is identical to the existing configuration. However, the new configuration will not have any instance even though the configuration from which it has been copied has instances.

To duplicate a configuration, perform the following tasks:

  1. Click Configuration tab.

  2. Select the configuration from the list.

  3. Click Copy button.

  4. In the pop-up window, enter the new configuration name and click OK.


Note –

Using CLI

For performing the action through CLI, execute the following command:


wadm> copy-config --user=admin --password-file=admin.pwd --host=serverhost 
--port=8989 --config=config1 copyconfig1

copyconfig1 is the name of the new configuration.

See CLI Reference, copy-config(1).


Deploying the Server Configuration

You need to create a configuration first to deploy on the node.

For deploying an existing configuration, perform the following tasks:

  1. Click Configurations tab

  2. Identify the configuration by selecting the configuration checkbox.

  3. Select Deploy Configuration from the configuration action list.

Deleting the Server Configuration


Note –

You cannot delete a configuration, if instances of the configuration are deployed to nodes. Even if the instances are deployed and not running, you are not allowed to delete the server configuration. Stop the running instances and undeploy them to delete the configuration.


For deleting a configuration, perform the following tasks:

  1. Click Configurations tab

  2. Identify the configuration by selecting the configuration checkbox.

  3. Select Delete Configuration from the configuration action list.