summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-01-09 01:52:28 +0000
committermh <mh@immerda.ch>2009-01-09 01:52:28 +0000
commit7d3a421c5c62c4a81d317acccd4a83a719557078 (patch)
tree64d8b6e30737710fb25ba0b41a11c0f46e76d4f3 /templates
parent01ab2dc5a871a1becd07a35cb518a4acf3dcae7a (diff)
fixed config
Diffstat (limited to 'templates')
-rw-r--r--templates/web/lighttpd13
1 files changed, 12 insertions, 1 deletions
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",
)