Administer virtual hosts

 

Overview

A virtual host allows WebSphere Application Server to treat multiple host names, IP addresses, or port numbers as a single logical host (virtual host) for configuration purposes.

 

Configure new virtual hosts

To configure a new virtual host, follow these steps:

  1. Start the administrative console.

  2. Expand...

    Environment | Virtual Hosts | New

  3. Specify a name for the virtual host.

  4. Click Apply.

  5. Configure one or more aliases for the virtual host.

    1. On the virtual host's detail page, click Host Aliases.

    2. Click New.

    3. Specify a host name and port number for the alias.

    4. Click OK.

  6. 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. Click MIME Types.

    2. Click New.

    3. Specify a MIME type and extensions that map to it.

    4. Click OK.

  7. Save the configuration.

  8. Regenerate the Web server plugin configuration.

 

Modify virtual hosts

To modify a virtual host, follow these steps:

  1. Start the administrative console.

  2. Expand...

    Environment | Virtual Hosts

  3. 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 previous steps.)

    • To modify a host alias, follow these steps:

      1. Click Host Aliases.

      2. Click the name of the alias that you want to modify.

      3. Make your changes.

      4. Click OK.

    • To remove a host alias, follow these steps:

      1. Click Host Aliases.

      2. Select the checkbox for the alias that you want to remove.

      3. Click Delete.

    • To modify the MIME type mappings, follow these steps:

      1. Click MIME Types.

      2. Click the MIME type that you want to modify.

      3. Make your changes.

      4. Click OK.

    • To remove a MIME type, follow these steps:

      1. Click MIME Types.

      2. Select the checkbox for the MIME type that you want to remove.

      3. Click Delete.

  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 administrative console.

  2. Expand...

    Environment | Virtual Hosts

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

 

See also