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:
- Start the WebSphere administrative console.
- In the topology tree, expand Environment and click Virtual Hosts.
- On the Virtual Hosts page, click 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.
- On the Host Aliases page, 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:
- On the virtual host's detail page, click MIME Types.
- On the MIME Types page, 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 virual host, follow these steps:
- Start the WebSphere administrative console.
- In the topology tree, expand Environment and click Virtual Hosts.
- On the Virtual Hosts page, 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 steps above.)
- To modify a host alias, follow these steps:
- Click Host Aliases.
- On the Host Aliases page, 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.
- On the Host Aliases page, 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.
- On the MIME Types page, 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.
- On the MIME Types page, 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 WebSphere administrative console.
- In the topology tree, expand Environment and click Virtual Hosts.
- On the Virtual Hosts page, select the checkbox for the virtual host that you want to remove.
- Click Delete.
- Save the configuration.
- Regenerate the Web server plugin configuration.