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

Gitweb is preprocessing content when it shouldn't

From
FPFrancesco Pretto <ceztkoml@gmail.com>
Date
Nov 1, 2007, 21:36 UTC
Message-ID
<b13782500711011436g4d0d78f2y76e19e04ff207f2@mail.gmail.com>

I was trying to follow the gitweb/README [1] to obtain http URLs that were valid both as cloneable GIT URL and as browseable gitweb interfaces. Unfortunately, gitweb is preprocessing all the content inside http://domain/repo.dir/ , so the command:

    git clone http://git.vpsaruba.homeunix.org/bproofs.git
fails while trying to read XHTML generated pages.

I'm not yet sure if this is behaviour recently changed in gitweb but I suppose this "hack" once worked (otherwise it wouldn't have been documented).

My apache/vhost configuration follows:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    Options Indexes FollowSymlinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost 62.149.168.100:80>
    ServerName git.vpsaruba.homeunix.org:80
    DocumentRoot /var/git
    RewriteEngine on
    RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?$
/cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
</VirtualHost>
Any consideration is appreciated.

Thanks, Francesco

[1] http://git.kernel.org/?p=git/git.git;a=blob_plain;f=gitweb/README;hb=HEAD
Message 1 of 1 in “Gitweb is preprocessing content when it shouldn't”
  1. Francesco PrettoNov 1, 2007

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.