Gitweb is preprocessing content when it shouldn't
From: Francesco Pretto <hidden>
Date: 2016-06-15 22:43:46
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