lighttpd: Redirect git.stderr.nl/*.git to /data/vcs/git.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 5 Jan 2009 14:48:12 +0000 (15:48 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 5 Jan 2009 14:48:12 +0000 (15:48 +0100)
This replaces the symlink in the htdocs directory and removes the /git/
from the url.

etc/lighttpd/vhosts/stderr-nl

index 71089a9d808eb8f21660d9def581b7b645859ec1..20d325e1e00befff6535dfa896dc230ad9534020 100644 (file)
@@ -20,6 +20,9 @@ $HTTP["host"] =~ ".stderr.nl$" {
                $HTTP["url"] =~ "^/gitweb(/.*)?$" {
                        alias.url += ( "/gitweb" => "/usr/lib/cgi-bin/gitweb.cgi" )
                }
+               $HTTP["url"] =~ ".git/" {
+                       alias.url += ( "/" => "/data/vcs/git/" )
+               }
        }
 
        $HTTP["host"] =~ "indigetes.stderr.nl$" {