Artikel ini belum diterjemahkan. Isi berikut berbahasa Inggris. Buka versi asli bahasa Inggris.
Alternative Web Server besides Apache and Nginx. Installation on Rocky Linux 8.x
Preparation
You can connect to the server via SSH or console.
ssh [username]@[ip_server] -p [ssh_port]Update the system
sudo dnf updateAdd caddy repository
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable @caddy/caddyInstallation
Install Caddy
sudo dnf install caddyCheck Caddy Version
caddy versionSample Output of Caddy version

Set Firewall
Allow HTTP & HTTPS
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=httpsRestart Firewall
sudo firewall-cmd --reloadStart Service
sudo systemctl enable --now caddy
sudo systemctl start caddy
sudo systemctl status caddySample Output of Service status.

Access the sample page
Open http://localhost or http://your-server-ip to access the sample page.
Output of Caddy sample page.
