How to Install Caddy Web Server on Ubuntu | Automatic HTTPS

Published: 28 July 2026
on channel: Zacs-World
191
5

In this step-by-step tutorial, you'll learn how to install and configure the Caddy Web Server on Ubuntu. Caddy is a modern, lightweight web server that automatically obtains and renews Let's Encrypt SSL certificates, making it one of the easiest ways to host secure websites.

Whether you're hosting a simple HTML website, Docker containers, Node.js applications, or other self-hosted services, Caddy makes securing your applications with HTTPS incredibly simple.

🔗 VPS used in this tutorial:
👉 https://zacs-tech.com/go/contabo-home...

Get Kamatera VPS (30 days free trial)
https://zacs-tech.com/go/kamatera-vps/

Register domain name
https://zacs-tech.com/go/namecheap/


Commands Used

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl

curl -1sLf 'https://dl.cloudsmith.io/public/caddy... | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg

curl -1sLf 'https://dl.cloudsmith.io/public/caddy... | sudo tee /etc/apt/sources.list.d/caddy-stable.list

sudo nano /etc/caddy/Caddyfile

sudo caddy validate --config /etc/caddy/Caddyfile

mysite.example.com {
root * /var/www/html
file_server
}


On this page of the site you can watch the video online How to Install Caddy Web Server on Ubuntu | Automatic HTTPS with a duration of hours minute second in good quality, which was uploaded by the user Zacs-World 28 July 2026, share the link with friends and acquaintances, this video has already been watched 191 times on youtube and it was liked by 5 viewers. Enjoy your viewing!