This uses simple matching on the querystring to select
Brevidius-related repositories (which should be sufficient and perhaps
have a few false positives as well) and uses a htpasswd file for the
logins.
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$" {