Administer virtual hosts with the WebSphere administrative console

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.

You can use the WebSphere administrative console to perform these tasks with virtual hosts:

Configure new virtual hosts

To configure a new virtual host, follow these steps:

  1. Start the WebSphere administrative console.
  2. In the topology tree, expand Environment and click Virtual Hosts.
  3. On the Virtual Hosts page, click New.
  4. Specify a name for the virtual host.
  5. Click Apply.
  6. Configure one or more aliases for the virtual host.
    1. On the virtual host's detail page, click Host Aliases.
    2. On the Host Aliases page, click New.
    3. Specify a host name and port number for the alias.
    4. Click OK.
  7. Configure MIME type extension mappings defined the virtual host. By default, several common mappings are configured for the new virtual host. To add a mapping, follow these steps:
    1. On the virtual host's detail page, click MIME Types.
    2. On the MIME Types page, click New.
    3. Specify a MIME type and extensions that map to it.
    4. Click OK.
  8. Save the configuration.
  9. Regenerate the Web server plugin configuration.

Modify virtual hosts

To modify a virual host, follow these steps:

  1. Start the WebSphere administrative console.
  2. In the topology tree, expand Environment and click Virtual Hosts.
  3. On the Virtual Hosts page, click the name of the virtual host that you want to modify.
  4. Make your changes. You can add, modify, and remove host aliases and MIME type mappings. (To add host aliases and MIME types, see the steps above.)

  5. Save the configuration.
  6. Regenerate the Web server plugin configuration.

Remove virtual hosts

To remove a virtual host, follow these steps:

  1. Start the WebSphere administrative console.
  2. In the topology tree, expand Environment and click Virtual Hosts.
  3. On the Virtual Hosts page, select the checkbox for the virtual host that you want to remove.
  4. Click Delete.
  5. Save the configuration.
  6. Regenerate the Web server plugin configuration.