Back to feed
Dev.to
Dev.to
7/24/2026
Deploying HAProxy on Ubuntu 22.04

Deploying HAProxy on Ubuntu 22.04

Short summary

A practical guide to deploying HAProxy on Ubuntu 22.04 as a load balancer in front of two Apache backend servers. Covers installation, frontend/backend configuration with round-robin balancing and health checks, stats dashboard setup, and firewall rules. Includes backend server configuration with distinguishable test pages and verification steps for confirming traffic distribution.

  • Installs and configures HAProxy with round-robin load balancing and health checks
  • Sets up live stats dashboard on port 8404 with auth
  • Covers backend Apache setup and firewall configuration for private network

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more