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:
- Start the administrative console.
- Expand...
Environment | Virtual Hosts | New- Specify a name for the virtual host.
- Click Apply.
- Configure one or more aliases for the virtual host.
- On the virtual host's detail page, click Host Aliases.
- Click New.
- Specify a host name and port number for the alias.
- Click OK.
- 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:
- Click MIME Types.
- Click New.
- Specify a MIME type and extensions that map to it.
- Click OK.
- Save the configuration.
- Regenerate the Web server plugin configuration.
Modify virtual hosts
To modify a virtual host, follow these steps:
- Start the administrative console.
- Expand...
Environment | Virtual Hosts- Click the name of the virtual host that you want to modify.
- 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:
- Click Host Aliases.
- Click the name of the alias that you want to modify.
- Make your changes.
- Click OK.
- To remove a host alias, follow these steps:
- Click Host Aliases.
- Select the checkbox for the alias that you want to remove.
- Click Delete.
- To modify the MIME type mappings, follow these steps:
- Click MIME Types.
- Click the MIME type that you want to modify.
- Make your changes.
- Click OK.
- To remove a MIME type, follow these steps:
- Click MIME Types.
- Select the checkbox for the MIME type that you want to remove.
- Click Delete.
- Save the configuration.
- Regenerate the Web server plugin configuration.
Remove virtual hosts
To remove a virtual host, follow these steps:
- Start the administrative console.
- Expand...
Environment | Virtual Hosts- Select the checkbox for the virtual host that you want to remove.
- Click Delete.
- Save the configuration.
- Regenerate the Web server plugin configuration.
See also