+
| http/https
|
+-----------+-----------+
| |
| HA proxy |
| |
+------+-----------+----+
http/https | | http/https
+-------------+---+ +---+--------------+
| | | |
| httpd | | httpd |
| | | |
+-----------------+ +------------------+
(graph created with asciiflow)
This demo features a HAProxy HTTP load balancer and two Apache httpd servers on CentOS 7.
Virtualization: libvirt / KVM
- libvirt
- Vagrant
- Vagrant plugin
vagrant-libvirt
- (optional) Vagrant plugin
vagrant-cachier
-
Generate certificates and keys with CloudFlare SSL
$ ./init-pki.sh
-
Create and provision virtual machines with Vagrant
$ vagrant up
-
Visit https://balancer-1/ and https://balancer-1/haproxy-status in your browser.