author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 19 Mar 2023 01:09:39 +0200 | |
changeset 8 | 0df9576d516d |
parent 7 | 1a62f2b0517c |
child 9 | 096e320e01b0 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deb/lighttpd-register-welcome.bash Sun Mar 19 01:09:39 2023 +0200 @@ -0,0 +1,16 @@ +#!/bin/bash + +apt install rsync + +d=welcome +mkdir -p /srv/www/$d +chown user:user /srv/www/$d + +cat <<EOF >/etc/lighttpd/conf-available/92-$d.conf +\$HTTP["host"] == "defun.work" { + server.document-root = "/srv/www/$d" +} +EOF + +lighttpd-enable-mod $d +service lighttpd restart