---
title: "HAProxy load balancer on a VPS · CloudSat"
description: "Deploy HAProxy on a CloudSat VPS to balance TCP and HTTP traffic with TLS termination and health checks, plus floating IPs for quick failover."
url: https://cloudsat.io/apps/deploy-haproxy
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[DevOps](https://cloudsat.io/apps/category/devops-platforms)

# HAProxy on a VPS

HAProxy is the open-source load balancer and reverse proxy for TCP and HTTP, with TLS termination, health checks and fine-grained traffic rules.

[Deploy HAProxy](https://dash.cloudsat.io/console/deploy?image=app%3Ahaproxy&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About HAProxy

HAProxy is a GPL-licensed load balancer and proxy for TCP and HTTP traffic. It terminates TLS, speaks HTTP/2 and HTTP/3, checks backend health, routes with ACLs, tracks clients in stick tables, and changes servers at runtime through its API.

A load balancer belongs on fast networking with spare headroom. CloudSat servers have 40 Gbps host uplinks and DDoS filtering, and a floating IP ($2.00/mo) can be moved to a standby HAProxy from the console if the primary fails.

Ubuntu 24.04 LTS runs HAProxy as the `haproxy` service, configured in `/etc/haproxy/haproxy.cfg`.

## What you get with HAProxy

- Layer 4 and layer 7 load balancing
- TLS termination with HTTP/2 and HTTP/3 over QUIC
- Active health checks and failover between backends
- ACLs, stick tables and rate limiting
- Stats page and a Runtime API for live changes

## HAProxy use cases

- Spreading web traffic across several app servers
- TLS offload in front of APIs and databases
- Blue-green and canary releases by weighting backends

## After you deploy HAProxy

1. Once the console shows **Running**, SSH in and open `/etc/haproxy/haproxy.cfg` to define frontends and backends.
2. Validate every edit with `haproxy -c -f /etc/haproxy/haproxy.cfg` before applying it.
3. Apply changes with `systemctl reload haproxy`, which keeps established connections alive.
4. Expose the stats page only on a private port or behind authentication, and open just your frontend ports in the CloudSat firewall.

## HAProxy ports

Open these in your firewall if you use one: `80/tcp HTTP`, `443/tcp HTTPS`, `443/udp HTTP/3 (if enabled)`.

## HAProxy FAQ

### Does HAProxy handle non-HTTP traffic?

Yes. In TCP mode it balances any TCP service, such as PostgreSQL, Redis or SMTP, with health checks, while HTTP mode adds header-aware routing, compression and caching rules.

### How do I avoid a single point of failure?

Run two HAProxy servers with the same configuration and keep the public address on a floating IP. If the active one fails, move the floating IP to the standby in the console.

**Disclaimer.** The HAProxy project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like HAProxy

[All apps in DevOps](https://cloudsat.io/apps/category/devops-platforms)

- [NGINX](https://cloudsat.io/apps/deploy-nginx): Web servers NGINX is the open-source web server and reverse proxy that serves static files, terminates TLS and balances traffic across app servers with low memory use.
- [Caddy](https://cloudsat.io/apps/deploy-caddy): Web servers Caddy is an open-source web server and reverse proxy that obtains and renews TLS certificates automatically, configured with a short, readable Caddyfile.
- [Ferron](https://cloudsat.io/apps/deploy-ferron): Web servers Ferron is a memory-safe web server written in Rust that serves static sites and reverse-proxies apps, with TLS certificates issued and renewed for you.
- [Zoraxy](https://cloudsat.io/apps/deploy-zoraxy): Web servers Zoraxy is a general-purpose HTTP reverse proxy and forwarding tool with a web UI: ACME certificates, TCP and UDP stream proxying, access rules and uptime checks.
- [Apache Airflow](https://cloudsat.io/apps/deploy-apache-airflow): DevOps Apache Airflow lets you write workflows as Python DAGs, schedule them and follow every run in a web UI, on a server you control.
- [Arcane](https://cloudsat.io/apps/deploy-arcane): DevOps Arcane is an open-source Docker management UI: containers, images, volumes, networks and Compose projects in one dashboard, with remote agents and Git sync.
