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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-08-23 at 15:56, Pierre Habouzit wrote:

> 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!

> 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


-
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]