deb/lighttpd-register-tips.bash
changeset 2 240cb9b244aa
child 3 8648def6d54b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deb/lighttpd-register-tips.bash	Sun Mar 19 00:15:39 2023 +0200
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+mkdir -p /srv/www/tips
+chown user:user /srv/www/tips
+
+cat <<'EOF' >/etc/lighttpd/conf-available/92-tips.conf
+$HTTP["host"] == "tips.defun.work" {
+  server.document-root = "/srv/www/tips/"
+}
+EOF
+
+lighttpd-enable-mod tips
+