How to set up your FortiWeb : Configuring basic policies : Example 3: Configuring a policy for load balancing
 
Example 3: Configuring a policy for load balancing
If you want protect multiple web servers, configuration is similar to Example 1: Configuring a policy for HTTP via auto-learning.
To distribute load among multiple servers, however, instead of specifying a single physical server in the server pool, you specify a group of servers (server farm or server pool).
 
This example assumes a basic network topology. If there is another, external proxy or load balancer between clients and your FortiWeb, you may need to define it (see “Defining your web servers & load balancers”).
Similarly, if there is a proxy or load balancer between FortiWeb and your web servers, you may need to configure your server pool for a single web server (the proxy or load balancer), not a Server Balance pool.
To configure a load-balancing policy
1. Define multiple web servers by either their IP address or domain name in a Server Balance server pool (Server Objects > Server > Server Pool). When used by a policy, it tells the FortiWeb appliance how to distribute incoming web connections to those destination IP addresses. In the server pool configuration, do the following:
For Type, select Round Robin or Weighted Round Robin.
For Single Server/Server Balance, select Server Balance.
Add your physical and/or domain servers.
If you want to distribute connections proportionately to a server’s capabilities instead of evenly, in each Weight, give the numerical weight of the new server when using the weighted round-robin load-balancing algorithm.
2. Configure a policy and profiles according to “Example 1: Configuring a policy for HTTP via auto-learning”, except for auto-learning, which you will postpone until these steps are complete.
Traffic should now pass through the FortiWeb appliance and be distributed among your servers. If it does not, see “Troubleshooting”.