HAProxy ALOHA Documentation 11.5


HAProxy ALOHA can operate as an HTTP proxy, in which HTTP streams are relayed through the load balancer to a pool of backend servers.

  1. The client connects to your application at the configured public IP address. The HAProxy ALOHA listens at that address and receives the packets.

  2. 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.

  3. 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

  1. In the web UI's LB Layer 7 tab, set the mode directive to http in both the frontend and backend sections 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
      server  websrv2

Next up

Direct Server Return