Setup
Installation
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-httpscurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpgcurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.listsudo apt updatesudo apt install caddyValidation
which caddycaddy versionUpon a successful installation you should see the location of the caddy binary and the version of the installed caddy package with the preceding commands.
For more information and to see useful Caddy commands run the below command:
caddy help
Managing the Caddy Service
Caddy Start
sudo systemctl start caddyCheck status:
systemctl status caddyCurl Localhost
If you scroll towards the top of the STDOUT you will find similar html formatting.
curl localhostCaddy Stop
caddy stopcurl localhost



