# Gitweb is preprocessing content when it shouldn't

1 messages from 2007-11-01 to 2007-11-01. Participants: Francesco Pretto.
Thread: https://gitlist.dev/t/10574

## Francesco Pretto, 2007-11-01 21:36

Subject: Gitweb is preprocessing content when it shouldn't
Message-ID: <b13782500711011436g4d0d78f2y76e19e04ff207f2@mail.gmail.com>
URL: https://gitlist.dev/e/b13782500711011436g4d0d78f2y76e19e04ff207f2%40mail.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

```
