Configure features to protect the load balancing configuration
Configure URL redirection
To configure a virtual server to redirect client requests to a URL by using the CLI
set lb vserver <name> -redirectURL <URL>
show lb vserver <name>
> set lb vserver vserver-LB-1 -redirectURL <http://www.newdomain.com/mysite/maintenance>
Done
> show lb vserver vserver-LB-1
vserver-LB-1 (10.102.29.60:80) - HTTP Type: ADDRESS
State: DOWN
Last state change was at Wed Jun 17 08:56:34 2009 (+666 ms)
.
.
.
Redirect URL: <http://www.newdomain.com/mysite/maintenance>
.
.
.
Done
>
To configure a virtual server to redirect client requests to a URL by using the GUI
-
Navigate to Traffic Management > Load Balancing > Virtual Servers.
-
In the details pane, select the virtual server for which you want to configure URL redirection (for example, vserver-LB-1), and then click Open.
-
In the Configure Virtual Server (Load Balancing) dialog box, on the Advanced tab, in the Redirect URL text box, type the URL (for example,
http://www.newdomain.com/mysite/maintenance), and then click OK. -
Verify that the redirect URL you configured for the server appears in the Details section at the bottom of the pane.
Configure backup virtual servers
To configure a backup virtual server by using the CLI
set lb vserver <name> [-backupVserver <string>]
show lb vserver <name>
> set lb vserver vserver-LB-1 -backupVserver vserver-LB-2
Done
> show lb vserver vserver-LB-1
vserver-LB-1 (10.102.29.60:80) - HTTP Type: ADDRESS
State: DOWN
Last state change was at Wed Jun 17 08:56:34 2009 (+661 ms)
.
.
.
Backup: vserver-LB-2
.
.
.
Done
>
To set up a backup virtual server by using the GUI
-
Navigate to Traffic Management > Load Balancing > Virtual Servers.
-
In the details pane, select the virtual server for which you want to configure the backup virtual server (for example, vserver-LB-1), and then click Open.
-
In the Configure Virtual Server (Load Balancing) dialog box, on the Advanced tab, in the Backup Virtual Server list, select the backup virtual server (for example, vserver-LB-2, and then click OK.
-
Verify that the backup virtual server you configured appears in the Details section at the bottom of the pane.Note: If the primary server goes down and then comes back up, and you want the backup virtual server to function as the primary server until you explicitly reestablish the primary virtual server, select the Disable Primary When Down check box.