From: Shawn O. Pearce Date: Sun, 27 Dec 2009 21:15:57 GMT Subject: Re: [PATCH] Smart-http documentation: add example of how to execute from userdir Message-ID: <20091227211557.GC609@spearce.org> In-Reply-To: <1261847255-13970-1-git-send-email-tarmigan+git@gmail.com> Tarmigan Casebolt wrote: > Smart-http may be an attactive and easy way for people to setup git > hosting on shared servers whose primary web server configuration they > do not control. To facilite this, provide an example of how it may be > done. ... > + \~/public_html/cgi-bin/.htaccess: > ++ > +---------------------------------------------------------------- > +SetHandler cgi-script > +Options +SymLinksIfOwnerMatch > +SetEnv GIT_PROJECT_ROOT /home/$username/devel > +---------------------------------------------------------------- At this point, isn't this just easier? mkdir ~/public_html/git vi ~/public_html/git/.htaccess SetEnv GIT_PROJECT_ROOT /home/$username/devel ScriptAlias / /usr/libexec/git-core/git-http-backend/ No need to mess around with SymlinksIfOwnerMatch and all of that fun. If you have .htaccess override allows, you should be able to setup a ScriptAlias without needing to use a cgi-bin directory. -- Shawn.