X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstderr-nl;fp=etc%2Flighttpd%2Fvhosts%2Fstderr-nl;h=fd12de44c5401f904dd9b2315c236b9bfdf1151e;hb=10d2b563454e14f6d7e2e56d9656f4b3c6ebf33a;hp=eb84556e2a6f2be0270ebd53e25c10f89a7da0ce;hpb=0e0894783a9e54150131d7bc69a99aaca67dd868;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index eb84556..fd12de4 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -19,6 +19,17 @@ $HTTP["host"] =~ ".stderr.nl$" { url.redirect += ("^/gitweb\?p=matthijs/projects/c.*ash\.git" => "/gitweb?p=matthijs/master-project/cλash.git") # Redirect / to gitweb url.redirect += ("^/$" => "/gitweb") + $HTTP["querystring"] =~ "/brevidius/" { + auth.backend = "htpasswd" + auth.backend.htpasswd.userfile = var.site-dir + "/conf/brevidius.user" + auth.require = ( + "/" => ( + "method" => "basic", + "realm" => "Brevidius", + "require" => "valid-user" + ) + ) + } } $HTTP["host"] =~ "hg.stderr.nl$" {