aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-11-25 18:32:02 +0200
committerTommi Virtanen <tv@eagain.net>2007-11-25 18:32:02 +0200
commit6ab2aa0a4bc0d67b7ba1cd3307706fe483c0b797 (patch)
treed432de97767a9fedc056192698dc3eaa8142b659 /lighttpd-gitweb.conf
parentAdd instructions for using git-daemon. (diff)
downloadgitosis-gentoo-6ab2aa0a4bc0d67b7ba1cd3307706fe483c0b797.tar.gz
gitosis-gentoo-6ab2aa0a4bc0d67b7ba1cd3307706fe483c0b797.tar.bz2
gitosis-gentoo-6ab2aa0a4bc0d67b7ba1cd3307706fe483c0b797.zip
Add instructions for using gitweb.
Diffstat (limited to 'lighttpd-gitweb.conf')
-rw-r--r--lighttpd-gitweb.conf21
1 files changed, 21 insertions, 0 deletions
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 = ( "" => "" )
+}