From 6ab2aa0a4bc0d67b7ba1cd3307706fe483c0b797 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sun, 25 Nov 2007 18:32:02 +0200 Subject: Add instructions for using gitweb. --- lighttpd-gitweb.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lighttpd-gitweb.conf (limited to 'lighttpd-gitweb.conf') diff --git a/lighttpd-gitweb.conf b/lighttpd-gitweb.conf new file mode 100644 index 0000000..cd0bedd --- /dev/null +++ b/lighttpd-gitweb.conf @@ -0,0 +1,21 @@ +server.modules += ( + "mod_cgi", + "mod_setenv", +) + +url.redirect += ( + "^/gitweb$" => "http://example.com/gitweb/", +) +alias.url += ( + "/gitweb/" => "/usr/lib/cgi-bin/gitweb.cgi", + "/gitweb.css" => "/var/www/gitweb.css", + "/git-logo.png" => "/var/www/git-logo.png", + "/git-favicon.png" => "/var/www/git-favicon.png", +) + +$HTTP["url"] =~ "^/gitweb/" { + setenv.add-environment = ( + "GITWEB_CONFIG" => "/srv/example.com/gitweb/gitweb.conf", + ) + cgi.assign = ( "" => "" ) +} -- cgit v1.2.3