6.8 Adding, Editing, or Removing a Virtual Host

Before you can add a virtual host, you must first create it. For information about creating virtual hosts on Apache, see Section 4.7, Creating Virtual Hosts.

When you add a virtual host object to the Objects list, a VirtualHost ip:port block is created in the configuration file that references the virtual server you are adding.

To add a virtual host:

  1. In the Objects list, click a server group, then click the name of the server where you want to add a virtual host.

  2. In the Choose Action drop-down list, select Add Virtual Host, then click Zigzag icon.

  3. In the Add Virtual Server dialog box, type a name for the virtual host in the Common Name field.

  4. In the Server Name field, type the full DNS name of the virtual server. For example:

    myserver.mycompany.com
    
  5. In the IP Address:Port Combinations field, specify the IP address and port number assigned to your virtual host. For example:

    172.16.5.18:80
    
  6. Click OK.

To edit a virtual host:

  1. In the Objects list, click the virtual host that you want to edit.

  2. From the Choose Action drop-down list, select Edit Object, then click Zigzag icon.

  3. In the Edit Virtual Server dialog box, modify the server name or IP address and port information.

  4. Click OK.

To remove a virtual host:

  1. From the Objects list, click the virtual host that you want to remove.

  2. From the Choose Action drop-down list, select Remove Object, then click Zigzag icon.

  3. In the Remove Virtual Server dialog box, click OK.