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