[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[snapshot/master] Use git's smart http transport for /git



---
 etc/apache.conf |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/etc/apache.conf b/etc/apache.conf
index 6e41861..91a4259 100644
--- a/etc/apache.conf
+++ b/etc/apache.conf
@@ -11,9 +11,15 @@ WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes
   CustomLog /var/log/apache2/snapshot.debian.org-access.log combined
 
   Alias /static      /srv/snapshot.debian.org/web/public/static
-  Alias /git         /srv/snapshot.debian.org/snapshot.git
+  #Alias /git         /srv/snapshot.debian.org/snapshot.git
   Alias /robots.txt  /srv/snapshot.debian.org/web/public/robots.txt
 
+  SetEnv GIT_PROJECT_ROOT /srv/snapshot.debian.org/snapshot.git
+  AliasMatch ^/git/(objects/[0-9a-f]{2}/[0-9a-f]{38})$          /srv/snapshot.debian.org/snapshot.git/$1
+  AliasMatch ^/git/(objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/snapshot.debian.org/snapshot.git/$1
+  ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
+
+
   RewriteEngine on
   RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R]
 
-- 
1.7.2.5



Reply to: