From de563dca61c82da789693e381a771d01369c6922 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 5 Jan 2009 15:48:12 +0100 Subject: [PATCH] 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. --- etc/lighttpd/vhosts/stderr-nl | 3 +++ 1 file changed, 3 insertions(+) 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$" { -- 2.30.2