4.0.0 HP Polyserve Matrix Server Administration Guide (T5392-96052, March 2010)
To add or update a virtual host from the command line, use the following command.
The first network interface specified is the primary interface and the additional
interfaces are backups.
mx vhost add [--application <application>]
[--policy autofailback|nofailback] [--activitytype single|always] <vhost>
([<network_interface> ...][ALL_SERVERS <network_interface>])
mx vhost update [--policy autofailback|nofailback] <vhost>
<network_interface> ...]
Configure applications for virtual hosts
After creating virtual hosts, you will need to configure your network applications to
recognize them. For example, if you are using a Web server, you may need to edit
its configuration files to recognize and respond to the virtual hosts. By default, FTP
responds to any virtual host request it receives.
You do not need to configure operating system software or files to respond to the
virtual host; Matrix Server does that configuration for you. For example, do not edit
start-up scripts with the virtual host information.
Other virtual host procedures
Enable or disable a virtual host
By default, virtual hosts are enabled. This means that Matrix Server attempts to locate
the virtual host in the matrix in accordance with the activeness policy for virtual hosts.
(See “Virtual host activeness policy” on page 197.)
Matrix Server does not attempt to locate a disabled virtual host in the matrix.
If you disable a currently active virtual host, any associated monitors on the server
where the virtual host is active will go through their stopping activities and the virtual
host will become inactive throughout the matrix.
To disable a virtual host, select the virtual host on the Management Console, right-click,
and select Disable. To disable a virtual host from the command line, use this command:
mx vhost disable <vhost>
To enable a previously disabled virtual host, select the virtual host on the Management
Console, right-click, and select Enable. To enable a virtual host from the command
line, use this command:
Configure virtual hosts194