summaryrefslogtreecommitdiff
path: root/templates/web/lighttpd
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/lighttpd')
-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",
)