From 819144c512ae330045faa1c9fa2c9e4ec351dcd8 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 9 Jan 2023 23:00:54 -0500 Subject: feat: add basic auth for some no-crawler pages --- usr/local/etc/lighttpd/conf.d/auth.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 usr/local/etc/lighttpd/conf.d/auth.conf (limited to 'usr/local/etc/lighttpd/conf.d') diff --git a/usr/local/etc/lighttpd/conf.d/auth.conf b/usr/local/etc/lighttpd/conf.d/auth.conf new file mode 100644 index 0000000..a3e1edc --- /dev/null +++ b/usr/local/etc/lighttpd/conf.d/auth.conf @@ -0,0 +1,4 @@ +server.modules += ("mod_auth", "mod_authn_file") +auth.backend = "htpasswd" +auth.backend.htpasswd.userfile = "/var/carpentertutoring/tutors.htpasswd" +auth.require = ( "/tutors" => ("method" => "basic", "realm" => "Tutors", "require" => "valid-user") ) -- cgit v1.2.3