From: Shawn O. Pearce Date: Fri, 16 Oct 2009 23:16:21 GMT Subject: Re: [RFC PATCH v3 00/17] Return of smart HTTP Message-ID: <20091016231621.GW10505@spearce.org> In-Reply-To: Mark Lodato wrote: > The gitweb part is just bonus. (The only thing for gitweb is the one > ScriptAlias line.) The real challenge is getting git-http-backend to > serve repositories out of something other than DocumentRoot - say > DocumentRoot is /var/www/htdocs but your git repositories are in > /pub/git - which is why I posted the configuration. If you'd like, I > can send you a patch to add this to the documentation. Yes, a patch would be wonderful. > One idea to improve the situation is to first try > $GIT_PROJECT_ROOT$PATH_INFO, falling back to $PATH_TRANSLATED if > $GIT_PROJECT_ROOT is empty. This would make the configuration simple: > > -- 8< -- > SetEnv GIT_PROJECT_ROOT /pub/git > ScriptAlias /git /usr/libexec/git-core/git-http-backend > -- >8 -- Oooh. Perhaps a good idea. :-) -- Shawn.