git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb testing with non-apache web server

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 3, 2006, 08:18 UTC
Message-ID
<easbev$act$1@sea.gmane.org>
In-Reply-To
<20060803075403.GA5238@buici.com>
<opublikowany i wysłany>
Marc Singer wrote:
Show 17 quoted lines
> 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
Previous: Marc SingerNext: Marc Singer
Message 2 of 18 in “gitweb testing with non-apache web server”
  1. Marc SingerAug 3, 2006
  2. Jakub NarebskiAug 3, 2006
  3. Marc SingerAug 3, 2006
  4. Jakub NarebskiAug 3, 2006
  5. Marc SingerAug 3, 2006
  6. Junio C HamanoAug 3, 2006
  7. Jakub NarebskiAug 3, 2006
  8. Junio C HamanoAug 3, 2006
  9. Martin WaitzAug 3, 2006
  10. Sam VilainAug 3, 2006
  11. Blu CoraterAug 3, 2006
  12. Marc SingerAug 3, 2006
  13. Blu CoraterAug 3, 2006
  14. Marc SingerAug 3, 2006
  15. Francis DalyAug 3, 2006
  16. Marc SingerAug 4, 2006
  17. Francis DalyAug 4, 2006
  18. Marc SingerAug 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.