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).
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. • 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.
Traffic should now pass through the FortiWeb appliance and be distributed among your servers. If it does not, see
“Troubleshooting”.