Caddy Server: Automatic HTTPS and Reverse Proxy Made Easy

Cloud & DevOps · 19.04.2026
Caddy Server: Automatic HTTPS and Reverse Proxy Made Easy

Caddy Server: Modern Web Server

Caddy automatically obtains and renews SSL certificates via Let's Encrypt — no Certbot needed.

Install and Basic Caddyfile

apt update && apt install caddy
yourdomain.com {
    root * /var/www/html
    file_server
    encode gzip
}

api.yourdomain.com {
    reverse_proxy localhost:3000
}
HTTP/3: Caddy enables HTTP/3 by default. Make sure UDP port 443 is open in your firewall.
← Back to Knowledge Base Ask Support