author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 19 Mar 2023 00:15:39 +0200 | |
changeset 2 | 240cb9b244aa |
parent 1 | f497bf96ddc3 |
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 +