git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Smart-http documentation: add example of how to execute from userdir

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 27, 2009, 21:15 UTC
Message-ID
<20091227211557.GC609@spearce.org>
In-Reply-To
<1261847255-13970-1-git-send-email-tarmigan+git@gmail.com>
Tarmigan Casebolt <tarmigan+git@gmail.com> 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.
...
Show 7 quoted lines
> +       \~/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.
Previous: Junio C HamanoNext: Tarmigan
Message 13 of 14 in “Smart-http documentation: add example of how to execute from userdir”
  1. Smart-http documentation: add example of how to execute from userdirTarmigan Casebolt, Dec 26, 2009
  2. Tay Ray ChuanDec 27, 2009
  3. TarmiganDec 28, 2009
  4. Smart-http documentation: add example of how to execute from userdirTarmigan Casebolt, Dec 28, 2009
  5. Tay Ray ChuanDec 31, 2009
  6. Smart-http documentation: add example of how to execute from userdirTarmigan Casebolt, Jan 2, 2010
  7. Tay Ray ChuanJan 3, 2010
  8. Junio C HamanoJan 3, 2010
  9. Shawn O. PearceJan 4, 2010
  10. TarmiganJan 5, 2010
  11. Smart-http documentation: add example of how to execute from userdirTarmigan Casebolt, Jan 5, 2010
  12. Junio C HamanoJan 5, 2010
  13. Shawn O. PearceDec 27, 2009
  14. TarmiganDec 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.