Recepie for stat site.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 19 Mar 2023 01:15:34 +0200
changeset 9 096e320e01b0
parent 8 0df9576d516d
child 10 6a6933bfce58
Recepie for stat site.
deb/lighttpd-register-stat.bash
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-stat.bash	Sun Mar 19 01:15:34 2023 +0200
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+apt install rsync
+
+d=stat
+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