From f2ccfde9eb668c53ea09307e56df217ec3856ca6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 21 Feb 2012 14:18:14 +0100 Subject: [PATCH] apache config --- misc/infrastructure/git-vhost.conf | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 misc/infrastructure/git-vhost.conf diff --git a/misc/infrastructure/git-vhost.conf b/misc/infrastructure/git-vhost.conf new file mode 100644 index 00000000..771c80d8 --- /dev/null +++ b/misc/infrastructure/git-vhost.conf @@ -0,0 +1,53 @@ + + ServerName de.git.xonotic.org + ServerAlias nl.git.xonotic.org + ServerAlias us.git.xonotic.org + ServerAlias git.xonotic.org + ServerAdmin divVerent@xonotic.org + + SetEnv GIT_PROJECT_ROOT /var/cache/git + + AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/cache/git/$1 + AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/cache/git/$1 + ScriptAliasMatch \ + "(?x)^/(.*/(HEAD | \ + info/refs | \ + objects/info/[^/]+ | \ + git-(upload|receive)-pack))$" \ + /usr/lib/git-core/git-http-backend/$1 + + DocumentRoot /usr/share/gitweb + Alias /gitweb /usr/share/gitweb/static + DirectoryIndex gitweb.cgi + + + + Allow from all + Deny from none + Order Allow,Deny + + Options +ExecCGI + SetHandler cgi-script + + + + + Allow from all + Deny from none + Order Allow,Deny + + Options Indexes + + + + Allow from all + Deny from none + Order Allow,Deny + + Options Indexes + + Options +ExecCGI + SetHandler cgi-script + + + -- 2.39.2