Configuring a web server failover
This recipe describes how to configure a small webfarm using the pfSense load balancer.
Getting ready
The load balancer also allows pfSense to send traffic to a failover server in case of downtime. In the following recipe, we will configure a backup webserver to take place of the primary in the event of downtime.
How to do it...
- Browse to Services | Load Balancer.
- Click the Monitor tab.
- Click the "plus" button to add a new monitor.
- Specify a Name.
- Add a Description.
- Set Type to HTTP.
- Set Host to the IP address of our primary webserver.
- Leave HTTP Code set to 200 OK:
- Save the changes.
- Apply changes, if necessary:
- Click the Pools ...
Get pfSense 2 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.