X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-http-backend.txt;h=f4e0741c115905f61a0e92c5255658f4b8e25711;hb=3c06ab69b1dba95ff73edd23c2c89a9c72b1f7f9;hp=277d9e141bf81bddb4ba661e43763b7774a1417d;hpb=6d1cdadbeeb03f40250526e29b1f1a91582911d8;p=git.git diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt index 277d9e141..f4e0741c1 100644 --- a/Documentation/git-http-backend.txt +++ b/Documentation/git-http-backend.txt @@ -119,6 +119,14 @@ ScriptAliasMatch \ ScriptAlias /git/ /var/www/cgi-bin/gitweb.cgi/ ---------------------------------------------------------------- ++ +To serve multiple repositories from different linkgit:gitnamespaces[7] in a +single repository: ++ +---------------------------------------------------------------- +SetEnvIf Request_URI "^/git/([^/]*)" GIT_NAMESPACE=$1 +ScriptAliasMatch ^/git/[^/]*(.*) /usr/libexec/git-core/git-http-backend/storage.git$1 +---------------------------------------------------------------- Accelerated static Apache 2.x:: Similar to the above, but Apache can be used to return static