Caddy Web Server on Centos 8 - mini how-to
My test platform: CentOS Linux release 8.2.2004 (Core)
Requirements: user with root privileges or non-root user with sudo privileges.
$ sudo dnf update -y
$ sudo dnf install 'dnf-command(copr)'
$ sudo dnf copr enable @caddy/caddy
$ sudo dnf install caddy -y
$ sudo systemctl enable caddy.service
$ sudo systemctl start caddy.service; systemctl status caddy.service
## my test local domain: ctx08vm.local.lnxorg
$ mkdir /var/www/html/ctx08vm.local.lnxorg
$ sudo touch /var/www/html/ctx08vm.local.lnxorg/index.html
$ echo '<!doctype html><head><title>Caddy Test Page</title></head><body><h1>Hello, World!</h1></body></html>' | sudo tee /var/www/html/ctx08vm.local.lnxorg/index.html
$ sudo firewall-cmd --add-service=http --permanent
$ sudo firewall-cmd --reload