A reverse proxy will allow LAN devices to host multiple web servers independently
Install Caddy
Install required packages
BASH
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
Add the official Caddy GPG key
BASH
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
Add the Caddy repository
BASH
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
Change file permissions
BASH
sudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
sudo chmod o+r /etc/apt/sources.list.d/caddy-stable.list
Update and install Caddy
BASH
sudo apt update && sudo apt install caddy
Update the firewall
BASH
sudo ufw allow in 80/tcp comment 'HTTP'
sudo ufw allow in 443/tcp comment 'HTTPS'
And reload UFW
BASH
sudo ufw reload
Configuring domain names will be done in relevant chapters.