From: Matthijs Kooijman Date: Mon, 5 Jan 2009 14:48:12 +0000 (+0100) Subject: lighttpd: Redirect git.stderr.nl/*.git to /data/vcs/git. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=de563dca61c82da789693e381a771d01369c6922;p=matthijs%2Fservers%2Fdrsnuggles.git lighttpd: Redirect git.stderr.nl/*.git to /data/vcs/git. This replaces the symlink in the htdocs directory and removes the /git/ from the url. --- diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 71089a9..20d325e 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -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$" {