On Debian 13:
sudo apt update
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
On RHEL 10:
sudo dnf install -y dnf-plugins-core
sudo dnf copr enable @caddy/caddy -y
sudo dnf install caddy
sudo systemctl enable --now caddy
On UFW:
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
On firewalld:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
Open http://SERVER_IP or https://SERVER_IP.
See Caddy Webserver Security for a focused security checklist.
See Caddy Hardening for server-specific hardening details.
See Caddy Configuration for configuration examples and best practices.
Prefer automation? See Caddy Ansible Setup for an example playbook.
Prefer containers? See Caddy Docker Setup.
Need professional assistance with your web server infrastructure? Our team provides:
Get in touch: office@linux-server-admin.com | Contact Page