Apache HTTP Server
The following section describes the steps on how to install and configure an Apache Load Balancer. The guide expects that the Apache HTTP Server is being setup for the first time. Please note that the installation steps might vary depending on your environment. These steps cover how to install and configure an Apache HTTP Server with proxy support for Microsoft Windows.
1. Download the Apache HTTP Server from the official webpage: https://httpd.apache.org/download.cgi
2. Unzip and copy the files to a folder.
3. Configure the proxy by opening the httpd.conf file in the conf folder.
4. Update the SRVROOT variable. The value must be updated to the file location of the Apache HTTP server.
5. Modules are required to be loaded to make the Apache HTTP Server into a load balancer. Add or uncomment the following lines in the httpd.conf file.
6. Configure the logic for the load balancer and how requests should be passed.
In the following example, we have configured the load balancer to listen to port 10080 and to use two balancer members (Route 1 and Route 2). The example will also set a session cookie named ROUTEID. The cookie contains the route that the user took and will continue to use throughout the active session.
7. The Apache HTTP Server can be started when all the configurations are in place. This is done by running the httpd script or application in the Apache binfolder.