Added gadict/test/2048/blog lighttpd registration recipe.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 19 Mar 2023 01:01:44 +0200
changeset 7 1a62f2b0517c
parent 6 f92d272095c3
child 8 0df9576d516d
Added gadict/test/2048/blog lighttpd registration recipe.
deb/lighttpd-register-2048.bash
deb/lighttpd-register-blog.bash
deb/lighttpd-register-gadict.bash
deb/lighttpd-register-test.bash
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-2048.bash	Sun Mar 19 01:01:44 2023 +0200
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+apt install rsync
+
+d=2048
+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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-blog.bash	Sun Mar 19 01:01:44 2023 +0200
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+apt install rsync
+
+d=blog
+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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-gadict.bash	Sun Mar 19 01:01:44 2023 +0200
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+apt install rsync
+
+d=gadict
+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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-test.bash	Sun Mar 19 01:01:44 2023 +0200
@@ -0,0 +1,16 @@
+#!/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