Use wsadmin to administer virtual hosts

A virtual host is a configuration entity that allows WebSphere Application Server - Express to treat multiple host names, IP addresses, or port numbers as a single logical host. For more information, see Virtual hosts.

To configure virtual hosts with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the cell and assign it to the cell variable:

    set cell [$AdminConfig getid /Cell:myCell]

    where myCell is the name of your application server cell.

  5. Run this command to to create a new virtual host:

    $AdminConfig create VirtualHost $cell {{name newVHost}}

    where newVHost is the name of the new virtual host.

  6. Run this command to save your changes:

    $AdminConfig save