AddHandler cgi-script .cgi
</Directory>
- # git stuff
- #################
- <Directory /srv/db.debian.org/git>
- DirectoryIndex index.html
- Require all granted
- </Directory>
-
- Alias /git-classic/ /srv/db.debian.org/git/
-
- SetEnv GIT_PROJECT_ROOT /srv/db.debian.org/git
- AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/db.debian.org/git/$1
- AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/db.debian.org/git/$1
- ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
- <Directory /usr/lib/git-core>
- Require all granted
- </Directory>
-
-
- # The rewrite is just there so we get a directory index.
- RewriteEngine on
- RewriteRule ^/git$ /git/ [R]
- RewriteRule ^/git/$ /git-classic/ [PT]
-
- #################
- Alias /bzr /srv/db.debian.org/bzr/
- <Directory /srv/db.debian.org/bzr>
- DirectoryIndex index.html
- </Directory>
</VirtualHost>
# vim:ft=apache: