Skip to content

Caddy Reverse Proxy VPS – Automatic HTTPS in 5 Minutes

Caddy as reverse proxy: automatic Lets Encrypt, Caddyfile, Docker, multiple domains – simpler alternative to nginx/Traefik on a VPS.

Root & VPS

Quick answer: Caddy is a reverse proxy with automatic HTTPS – point DNS, save Caddyfile, done. No Certbot needed.

Minimal Caddyfile

app.yourdomain.com {
    reverse_proxy localhost:3000
}

Related

VPS & root servers: Order VPS in Germany · NexoraHost · nexorahost.com (Maincubes FRA01 Frankfurt · Ryzen · NVMe · GDPR)

Frequently asked questions (FAQ)

Caddy vs Traefik vs nginx?
Caddy: easiest HTTPS (auto-TLS). Traefik: great with Docker labels. nginx: max control, more config. Solo devs often prefer Caddy.
Do I need Certbot with Caddy?
No. Caddy obtains and renews Let's Encrypt certs automatically once DNS points to the server.
Caddy with Docker?
Yes: image caddy:2, ports 80/443, volumes for Caddyfile and caddy_data (certificates).
Multiple apps behind Caddy?
One block per domain in the Caddyfile with reverse_proxy to localhost:PORT or container name.
SSL not issuing?
Check DNS A record, port 80 open (HTTP-01), nothing else binding 80/443.

Keep reading

Popular and fresh – not just the oldest guides.

More

Explore NexoraHost