deb/lighttpd-register-test.bash
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 May 2024 15:54:42 +0300
changeset 36 dc0a281349d1
parent 7 1a62f2b0517c
permissions -rw-r--r--
Instructions to install certbot.

#!/bin/bash

apt install rsync

d=test
mkdir -p /srv/www/$d
chown user:user /srv/www/$d

cat <<EOF >/etc/lighttpd/conf-available/92-$d.conf
\$HTTP["host"] == "$d.defun.work" {
  server.document-root = "/srv/www/$d"
}
EOF

lighttpd-enable-mod $d
service lighttpd restart