Hosting & 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
| Caddy | Nginx Proxy Manager | Traefik | |
|---|---|---|---|
| Configuration | Short text file (Caddyfile) | Web UI | Docker labels / config files |
| HTTPS certificates | Fully automatic (Let's Encrypt, ZeroSSL fallback) | Let's Encrypt via form | Automatic via ACME resolver |
| Docker required | No | Yes | Practically yes |
| Learning curve | Low | Very low | Medium to high |
| Extra attack surface | Minimal | Admin UI on port 81 | Optional dashboard |
| Best for | Few stable apps, people who like text config | Beginners and homelabs | Many 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:
n8n.example.com→ the n8n container on port 5678status.example.com→ Uptime Kuma on port 3001example.com→ the blog
The apps themselves only listen internally and are not exposed directly. That's safer and tidier.
What else it handles
- HTTPS certificates: it obtains free certificates and renews them automatically.
- HTTP-to-HTTPS redirects.
- Access control: basic auth or IP allow-lists in front of internal tools.
- Compression and security headers.
Prerequisites
- A server with a public IP, such as a small VPS. Our Hostinger vs. Hetzner vs. netcup comparison covers budget options.
- 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.
- Ports 80 and 443 open in the firewall. Automated certificate validation needs them reachable from outside.
- 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.
- DNS: three A records (
n8n,status,@) pointing to the server IP. - Firewall: ports 22, 80 and 443 open, everything else closed.
- Start the apps as Docker containers, binding their ports only to localhost or an internal Docker network.
- Install Caddy and add three blocks to the Caddyfile – or create three Proxy Hosts in Nginx Proxy Manager.
- 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:
- Basic auth: one extra line in a Caddy block, an "Access List" in Nginx Proxy Manager, or a middleware in Traefik.
- IP allow-lists: only requests from your office or VPN range get through.
- Not exposing it at all: for pure admin tools, an SSH tunnel is often the safest option.
Common mistakes
- DNS doesn't point to the server yet: certificate issuance fails. Check DNS first, then request the certificate.
- Apps are also exposed directly: if a container publishes its port publicly, visitors can bypass the proxy. Bind ports internally.
- Too many test attempts: Let's Encrypt rate-limits certificates and failed validations. Use its staging environment for experiments.
- Admin UI open to the internet: never publish Nginx Proxy Manager's port 81 or the Traefik dashboard without protection.
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?
- If you'd rather click than type, use Nginx Proxy Manager and lock down its admin UI.
- If you run a few stable apps, Caddy is the leanest option with the fewest moving parts.
- If Docker services come and go all the time, learning Traefik pays off.
- If you're renting your first server, start with Caddy and one app, then expand step by step.
