Re: gitweb testing with non-apache web server
- From
- Marc Singer <elf@buici.com>
- Date
- Aug 4, 2006, 07:30 UTC
- Message-ID
- <20060804073039.GA20417@buici.com>
- In-Reply-To
- <20060803235536.GJ17966@craic.sysops.org>
I found that lighttpd works well, though the configuration was a little more complex.
The recipe that works well is to make the URL
http://server/git
to the gitweb.cgi script. I put the script and the CSS file in a directory, /var/lib/git/, and then put the following into the lighttpd configuration:
# Serve GIT
url.redirect = ( "^/git$" => "/git/" )
alias.url += ( "/git/" => "/var/lib/git/" )
$HTTP["url"] =~ "^/git/" {
cgi.assign = ( ".cgi" => "" )
index-file.names = ( "gitweb.cgi" )
}Cheers.