lighttpd: Add configuration for hgweb.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 22 Feb 2010 15:08:00 +0000 (16:08 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 22 Feb 2010 15:09:36 +0000 (16:09 +0100)
For some unknown reason, this configuration has never made it into git
and somehow disappeared.

etc/lighttpd/vhosts/stderr-nl

index 0d6b94b8d4ab8dd43803b2228a77aa1e8461a2d6..5c0e7ef2addb8e5f70417d02c94afd2ebb40d413 100644 (file)
@@ -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"