From 7d3a421c5c62c4a81d317acccd4a83a719557078 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 9 Jan 2009 01:52:28 +0000 Subject: fixed config --- templates/web/lighttpd | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/web/lighttpd b/templates/web/lighttpd index c7a5130..50c9c44 100644 --- a/templates/web/lighttpd +++ b/templates/web/lighttpd @@ -1,4 +1,15 @@ -$HTTP["host"] == "<%= $gitweb_url %>" { +$HTTP["host"] == "<%= gitweb_url %>" { + url.redirect += ( + "^$" => "/", + ) + + alias.url += ( + "/gitweb.css" => "/var/www/git/gitweb.css", + "/git-logo.png" => "/var/www/git/git-logo.png", + "/git-favicon.png" => "/var/www/git/git-favicon.png", + "/" => "/var/www/git/gitweb.cgi", + ) + setenv.add-environment = ( "GITWEB_CONFIG" => "/etc/gitweb.d/${name}.conf", ) -- cgit v1.2.3