Hosting & VPS ·

Reverse Proxy Explained: Run Multiple Web Apps Cleanly on One VPS

Reverse Proxy Explained: Run Multiple Web Apps Cleanly on One VPS

Transparency note: Links marked with an asterisk (*) are affiliate links. If you buy a product or book a service through such a link, we receive a small commission at no extra cost to you. Our comparisons and assessments are not influenced by this. This article currently contains no affiliate links. See our affiliate disclosure.

Want to run several web apps on one VPS – say n8n, a status page and a blog – each on its own subdomain with HTTPS? You need a reverse proxy. This guide explains what a reverse proxy does, compares the three most popular free options – Caddy, Nginx Proxy Manager and Traefik – and shows which one fits which kind of user. Details are based on the projects' official documentation as of November 2026.

Caddy vs. Nginx Proxy Manager vs. Traefik at a glance

CaddyNginx Proxy ManagerTraefik
ConfigurationShort text file (Caddyfile)Web UIDocker labels / config files
HTTPS certificatesFully automatic (Let's Encrypt, ZeroSSL fallback)Let's Encrypt via formAutomatic via ACME resolver
Docker requiredNoYesPractically yes
Learning curveLowVery lowMedium to high
Extra attack surfaceMinimalAdmin UI on port 81Optional dashboard
Best forFew stable apps, people who like text configBeginners and homelabsMany changing Docker services

All three are open source and free. You only pay for the server itself.

What a reverse proxy does

A server has one public IP address, and web traffic uses two ports: 80 for HTTP and 443 for HTTPS. Each port can only be bound by one program. If n8n, Uptime Kuma and your blog all need to be reachable from the internet, something has to accept every request and hand it to the right app.

That something is the reverse proxy. It listens on ports 80 and 443, checks the hostname of each request and forwards it:

The apps themselves only listen internally and are not exposed directly. That's safer and tidier.

What else it handles

Prerequisites

  1. A server with a public IP, such as a small VPS. Our Hostinger vs. Hetzner vs. netcup comparison covers budget options.
  2. A domain with DNS records: one A record (plus AAAA for IPv6) per subdomain, pointing to the server's IP. Keeping DNS at a separate registrar makes this easy to manage – see separating domain and hosting.
  3. Ports 80 and 443 open in the firewall. Automated certificate validation needs them reachable from outside.
  4. Docker – required for Nginx Proxy Manager and Traefik, optional for Caddy.

Caddy: HTTPS without thinking about it

Caddy is known for automatic HTTPS. According to its documentation, it obtains certificates from Let's Encrypt by default, falls back to ZeroSSL if that fails, renews them on its own and redirects HTTP to HTTPS automatically.

A complete configuration for two apps looks like this:

n8n.example.com {
    reverse_proxy localhost:5678
}
status.example.com {
    reverse_proxy localhost:3001
}

That's it. Reload the configuration and both subdomains are live with valid certificates.

Pros: very short, readable config; a single binary; works without Docker; excellent docs.
Cons: no web UI – every new app means editing a file and reloading.

Nginx Proxy Manager: everything by click

Nginx Proxy Manager is a Docker container with a web interface on top of Nginx. Per the official setup guide it maps three ports: 80 and 443 for public traffic and 81 for the admin UI. For each subdomain you create a "Proxy Host": enter the domain, the target container and port, then choose "Request a new certificate" on the SSL tab.

Pros: no config files, a clear overview of all hosts and certificates, access lists by click.
Cons: the admin UI on port 81 is an attack target in itself. Block it in the firewall and reach it only via SSH tunnel or VPN, and change the default credentials on first login. Advanced Nginx tweaks are possible but less transparent than in a file.

Traefik: automatic for Docker

Traefik connects to Docker and reads labels you attach to each container – for example which domain it should get. When a new container starts with matching labels, Traefik sets up the route and certificate by itself.

Pros: ideal if you constantly add and remove services; routing config lives right next to each app in its Compose file.
Cons: steeper learning curve – routers, services, middlewares and entrypoints take time to understand, and label typos are hard to debug.

Worked example: three apps on a small VPS

A VPS with 2 vCPUs and 4 GB RAM is to serve n8n, Uptime Kuma and a static website.

  1. DNS: three A records (n8n, status, @) pointing to the server IP.
  2. Firewall: ports 22, 80 and 443 open, everything else closed.
  3. Start the apps as Docker containers, binding their ports only to localhost or an internal Docker network.
  4. Install Caddy and add three blocks to the Caddyfile – or create three Proxy Hosts in Nginx Proxy Manager.
  5. Check in the browser: padlock icon, valid certificate, HTTP redirects to HTTPS.

The proxy itself needs very little memory or CPU. Your apps consume the resources, not the proxy.

Protecting internal tools

Not every app should be public just because it has a subdomain. Monitoring dashboards or database UIs deserve an extra layer:

Common mistakes

How we research and source the details in our guides is described on our methodology page.

FAQ

Do I need a reverse proxy for a single app?

Not strictly, but it's still handy: it handles HTTPS, and adding a second app later requires no rework.

Do SSL certificates cost money?

No. All three tools obtain free certificates and renew them automatically. Paid certificates aren't necessary for typical web apps.

Caddy or Nginx Proxy Manager for beginners?

If you prefer clicking, choose Nginx Proxy Manager. If a short text file doesn't scare you, Caddy is cleaner and has no extra admin UI to secure.

Can I do this at home without a VPS?

Yes, with port forwarding and a public IP. Many home connections don't get a dedicated public IPv4 address, though – then a cheap VPS or a tunnel service is the easier route.

Which one should you pick?

← All articles