3.1.2 Matrix Server Administration Guide
Chapter 11: Configure Virtual Hosts 153
Copyright © 1999-2006 PolyServe, Inc. All rights reserved.
Other Virtual Host Procedures
Delete a Virtual Host
Select the virtual host to be deleted on either the Servers window or the
Virtual Hosts window, right-click, and select Delete. Any service
monitors configured on that virtual host are also deleted.
To delete a virtual host from the command line, use this command:
mx vhost delete <vhost> ...
Change the Virtual IP Address for a Virtual Host
When you change the virtual IP address of a virtual host, you will also
need to update your name server and to configure applications to
recognize the new virtual IP address. The order in which you perform
these tasks is dependent on your application and the requirements of
your site.
You can use mx commands to change the virtual IP address of a virtual
host. Complete these steps:
1. At the command prompt, run the following command:
mx matrix dump > mxdump.out
2. Edit the mxdump.out file, replacing all occurrences of the old IP
address with the new IP address.
3. At the beginning of the mxdump.out file, add a line such as the
following to remove the old IP address from the virtual host
configuration:
vhost delete <old_IP_address>
4. Delete any lines in mxdump.out that do not need to change.
5. Run the following command to update the matrix configuration with
the new IP address:
mx --file mxdump.out