Linux
gitweb auf Debian Lenny mit lighttpd aufsetzen
gitweb soll installiert werden...
OS: Debian 5.0 (Lenny)
Webserver: Lighttpd (Lighty)
Software-Installation:
$ aptitude install lighttpd gitweb
Lighty-Config für gitweb erstellen
/etc/lighttpd/conf-available/99-gitweb.conf:
server.modules += (
"mod_cgi",
"mod_setenv",
"mod_redirect",
)
index-file.names += ( "gitweb.cgi" )
url.redirect += (
"^/gitweb$" => "/gitweb/",
"^/$" => "/gitweb/",
)
alias.url += (
"/gitweb/" => "/usr/lib/cgi-bin/gitweb.cgi",
"/gitweb.css" => "/usr/share/gitweb/gitweb.css",
"/git-logo.png" => "/usr/share/gitweb/git-logo.png",
"/git-favicon.png" => "/usr/share/gitweb/git-favicon.png",
)
$HTTP["url"] =~ "^/gitweb/" {
setenv.add-environment = (
"GITWEB_CONFIG" => "/etc/gitweb.conf",
)
cgi.assign = ( "" => "" )
}
Info: Diese Config leitet http://domain.tld/ und http://domain.tld/gitweb auf http://domain.tld/gitweb/ weiter
Config aktivieren:
$ lighttpd-enable-mod gitweb
$ /etc/init.d/lighttpd reload
Quelle: http://github.com/res0nat0r/gitosis/blob/2cf64580693d08a22d0d7de077ef5c11208c750a/lighttpd-gitweb.conf
Tags: git, lighttpd, lighty, cgi
Verwandte Artikel:
Letzte Änderung des Artikels: 2009-10-05 15:04
Verfasser des Artikels: Florian Schrön
Revision: 1.1
Kommentieren nicht möglich