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

Re: [PATCH] git-daemon virtual hosting implementation.

From
Jon Loeliger <jdl@freescale.com>
Date
Aug 24, 2006, 20:15 UTC
Message-ID
<1156450516.10054.276.camel@cashmere.sps.mot.com>
In-Reply-To
<200608232256.10108.madcoder@debian.org>
On Wed, 2006-08-23 at 15:56, Pierre Habouzit wrote:
Show 9 quoted lines
> Another option would be not to support virtual hosts, but instead 
> superseed the --base-path and --user-path with some --base-path-fmt 
> and --user-path-fmt where the user can specify how to build the path 
> with simple sprintf-like formats. One could e.g. support:
>  * %% obviously ;
>  * %h that will be replaced with the hostname
>  * %u (only for --user-path-fmt)
>  * %p (asked path)
>  * ...

And this is exactly what I have implemented and running on my system today!

Show 7 quoted lines
> I think that's more clever, and allow more flexible use of the virtual 
> hosting code. It e.g. allow to use the virtual host scheme for the 
> `base-path` repos and to disallow it for the users.
> 
> --*-path and --*-path-fmt are obviously mutually exclusive.
> 
> What do you think ?
I kinda like it... :-)
jdl
Previous: Pierre HabouzitNext: Junio C Hamano
Message 4 of 16 in “git-daemon virtual hosting implementation.”
  1. git-daemon virtual hosting implementation.Pierre Habouzit, Aug 23, 2006
  2. Junio C HamanoAug 23, 2006
  3. Pierre HabouzitAug 23, 2006
  4. Jon LoeligerAug 24, 2006
  5. Junio C HamanoAug 24, 2006
  6. Jon LoeligerAug 24, 2006
  7. git-daemon: more powerful base-path/user-path settings, using formats.Pierre Habouzit, Aug 23, 2006
  8. Junio C HamanoAug 24, 2006
  9. Pierre HabouzitAug 24, 2006
  10. Junio C HamanoAug 27, 2006
  11. Pierre HabouzitAug 27, 2006
  12. Junio C HamanoAug 27, 2006
  13. Pierre HabouzitAug 27, 2006
  14. Jakub NarebskiAug 27, 2006
  15. Pierre HabouzitAug 27, 2006
  16. Randal L. SchwartzAug 27, 2006

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.