From: Jakub Narebski Date: Thu, 03 Aug 2006 08:18:07 GMT Subject: Re: gitweb testing with non-apache web server Message-ID: In-Reply-To: <20060803075403.GA5238@buici.com> Marc Singer wrote: > I did some debugging on the latest repo version. The lines > > our $project = ($cgi->param('p') || $ENV{'PATH_INFO'}); > if (defined $project) { > ... > > are being executed even though the url is > > http://server/git > > I think that the problem is that Cherokee translates the request URL > into > > http://server/git/ > > which means that the $ENV{'PATH_INFO'} is the string "/" insted of > being undefined. Try changing my $project = ($cgi->param('p') || $ENV{'PATH_INFO'}); if (defined $project) { $project =~ s|^/||; $project =~ s|/$||; to my $project = ($cgi->param('p') || $ENV{'PATH_INFO'}); $project =~ s|^/||; $project =~ s|/$||; if (defined $project && $project) { (and send patch if it works, please). -- Jakub Narebski Warsaw, Poland ShadeHawk on #git