On Sun, Dec 27, 2009 at 4:15 PM, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote: > Tarmigan Casebolt <tarmigan+git@xxxxxxxxx> 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/ Yes, that would be perfect. But ScriptAlias is only valid in the "server config" or "virtual host" contexts which is why the symlink/copy executable convolutions might be needed. Can you see a simpler way around it? Thanks, Tarmigan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html