HAProxy ALOHA can operate as an HTTP proxy, in which HTTP streams are relayed through the load balancer to a pool of backend servers.
The client connects to your application at the configured public IP address. The HAProxy ALOHA listens at that address and receives the packets.
HAProxy ALOHA makes a separate connection to one of the backend servers and relays the packets over that connection. In other words, the client's original connection is not routed to a backend server directly. Instead, the client communicates with the HAProxy ALOHA only.
The backend server sends its response back to HAProxy ALOHA and then HAProxy ALOHA relays it back to the client over the frontend connection.
Set HTTP mode
In the web UI's LB Layer 7 tab, set the
modedirective to http in both the
backendsections of your configuration to load balance HTTP connections.
Set the mode to http to load balance HTTP traffic.
frontend webservice mode http bind :80 default_backend webfarm backend webfarm mode http balance roundrobin server websrv1 192.168.1.21:80 server websrv2 192.168.1.22:80
Next upDirect Server Return