From: Matthijs Kooijman Date: Mon, 22 Feb 2010 15:08:00 +0000 (+0100) Subject: lighttpd: Add configuration for hgweb. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=4a2b1544dc81ceee8e1ad5de737f8df46bd58882;p=matthijs%2Fservers%2Fdrsnuggles.git lighttpd: Add configuration for hgweb. For some unknown reason, this configuration has never made it into git and somehow disappeared. --- diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 0d6b94b..5c0e7ef 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -16,6 +16,13 @@ $HTTP["host"] =~ ".stderr.nl$" { } } + $HTTP["host"] =~ "hg.stderr.nl$" { + # Let all of hg.stderr.nl be handled by hgweb, since it also + # takes care of clone / pull requests. + cgi.assign += ( "hgwebdir.cgi" => "" ) + alias.url += ( "" => "/usr/local/lib/cgi-bin/hgwebdir.cgi" ) + } + $HTTP["host"] =~ "blues.stderr.nl$" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile = var.site-dir + "/conf/pandora2009.user"