In this project, I continued to build up the configuration of the web server issued in project 0x0B. I was issued two additional servers, one to replicate the Nginx configuration of my original server, and another to set up an HAproxy load balancer on to manage both web servers.
-
0. Double the number of webservers
- 0-custom_http_response_header: Bash
script that installs and configures Nginx on a server with a custom HTTP
response header.
- The name of the HTTP header is
X-Served-By
. - The value of the HTTP header is the hostname of the server.
- The name of the HTTP header is
- 0-custom_http_response_header: Bash
script that installs and configures Nginx on a server with a custom HTTP
response header.
-
1. Install your load balancer
- 1-install_load_balancer: Bash script that
installs and configures HAproxy version 1.5 on a server.
- Enables management via the init script.
- Requests are distributed using a round-robin algorithm.
- 1-install_load_balancer: Bash script that
installs and configures HAproxy version 1.5 on a server.