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

Re: [PATCHv2] gitweb: make static files accessible with PATH_INFO

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 28, 2009, 00:20 UTC
Message-ID
<200901280120.38985.jnareb@gmail.com>
In-Reply-To
<1232973937-23875-1-git-send-email-giuseppe.bilotta@gmail.com>
On Mon, 26 Jan 2009, Giuseppe Bilotta wrote:
> It's sick that $cgi->url() has no way to print the script base url
> without path_info information (or that, if it has, it's very well
> hidden).
Actually:
http://localhost/cgi-bin/gitweb/printenv.cgi/path/info?query=a;string=b;c=c;c=a

url(-absolute=>1) = /cgi-bin/gitweb/printenv.cgi url(-relative=>1) = /cgi-bin/gitweb/printenv.cgi url(-full=>1) = http://localhost/cgi-bin/gitweb/printenv.cgi url(-path_info=>1) = http://localhost/cgi-bin/gitweb/printenv.cgi/path/info url(-query=>1) = http://localhost/cgi-bin/gitweb/printenv.cgi?query=a;string=b;c=c;c=a url(-base=>1) = http://localhost

$ENV{'SCRIPT_NAME'} = /cgi-bin/gitweb/printenv.cgi $ENV{'PATH_INFO'} = /path/info

With CGI.pm version 3.10
-- 
Jakub Narebski
Poland
Previous: Giuseppe BilottaNext: Giuseppe Bilotta
Message 2 of 3 in “[PATCHv2] gitweb: make static files accessible with PATH_INFO”
  1. Giuseppe BilottaJan 26, 2009
  2. Jakub NarebskiJan 28, 2009
  3. Giuseppe BilottaJan 28, 2009

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.