1 # This is example configuration of a virtualhost running Girocco, as set up
2 # at repo.or.cz; unfortunately, completely independent from Girocco::Config.
3 # It is not essential for Girocco to use a special virtualhost, however.
7 ServerAlias www.repo.or.cz
8 ServerAdmin admin@repo.or.cz
10 ErrorLog /var/log/apache2/repo-error.log
11 CustomLog /var/log/apache2/repo-access.log combined
13 AddHandler cgi-script .cgi
15 DocumentRoot /home/repo/WWW
16 <Directory /home/repo/WWW>
17 Options Indexes FollowSymLinks MultiViews ExecCGI
21 DirectoryIndex gitweb.cgi
25 ScriptAlias /w /home/repo/WWW/gitweb.cgi
26 ScriptAlias /h /home/repo/WWW/html.cgi
29 Options FollowSymLinks
35 <Directory /usr/lib/git-core>
40 <Files git-http-backend>
46 SetEnv GIT_PROJECT_ROOT /srv/git
47 SetEnv GIT_HTTP_EXPORT_ALL 1
49 AliasMatch ^/r/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/$1
50 AliasMatch ^/r/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/$1
51 ScriptAlias /r/ /usr/lib/git-core/git-http-backend/