6.5 Adding or Removing Servers to or from a Server Group

After a server group is created, you then add Apache Web server objects to it. A server object contains all configurations specific to a single Apache server. However, server objects inherit configurations from objects above them in the Objects list unless you specifically disinherit them, as described in Section 6.10, Viewing and Editing an Object's Configuration.

You can manually add a server to a server group, or you can import it along with all of its configuration settings using the ap2webman command at the server console. Importing a server is much faster and more accurate.

To automatically import a server and its settings:

  1. At the NetWare console of the server that is running the Apache Web server that you want to import, go to the system console prompt.

  2. Enter ap2webman to run the configuration daemon.

  3. When prompted, type your administrator password, then press Enter.

  4. When prompted, press Y to import the server and its configurations.

Repeat this procedure on each server that you want imported.

If you want to import Apache Web server configurations from Linux or Windows, you can download the configuration daemon from the Novell Developer Kit (NDK) and run it on those servers as well. You can also download LDIF files for use in adding Windows and Linux groups to eDirectory. For instructions, see Section B.0, Installing the Apache Manager Daemon on Linux and Windows.

To manually add a server to a server group:

  1. In the Objects list, click a server group name to display its information, select Add Server from the Choose Action drop-down list, then click Description: Zigzag icon.

  2. In the Add Server dialog box, type a name for your server in the Common Name field.

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

    www.myserver.com
    

    If you don't know the DNS name of your server, contact a network administrator who manages your DNS server. If you simply want to test your server and have not yet registered with a DNS server, you can edit the hosts files on both NetWare and your client computer, which lets you see your server from any client where you have correctly modified the hosts file.

    On NetWare, the hosts file is in the volume:\etc directory. On Windows, search for the hosts file, which on Windows XP is typically in the drive:\\winnt\system32\drivers\etc folder. For both hosts files, add the IP address, port number, and a temporary DNS name at the end of each file. For example:

    172.16.5.18 myserver.mycompany.com

  4. Click OK.

When you add a server manually, you must add all of the necessary Apache directives. Begin by clicking the server in the Objects list and then typing (or copying and pasting) the directives directly into the Directives frame.

To remove a server from a server group:

  1. In the Objects list, click a server group that contains the server you want to remove.

  2. Click the server you want removed, select Remove Object in the Choose Action drop-down list, then click Description: Zigzag icon.

    IMPORTANT:After you remove a server, the only way to get it back is to re-create it either manually or by importing it again using the ap2webman command.

  3. Click OK in the Remove Server dialog box.