From 411c075bc8493bc35e479421d647ae746d62a368 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Fri, 26 Mar 2010 17:16:34 +0000 Subject: [PATCH] git-daemon-vhosts.pl: A sample virtual host configuration file. --- git-daemon/git-daemon-vhosts.pl | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 git-daemon/git-daemon-vhosts.pl diff --git a/git-daemon/git-daemon-vhosts.pl b/git-daemon/git-daemon-vhosts.pl new file mode 100644 index 0000000..4c6fb62 --- /dev/null +++ b/git-daemon/git-daemon-vhosts.pl @@ -0,0 +1,31 @@ +# Configuration file for the userv git daemon. +# +# This was written by Tony Finch +# You may do anything with it, at your own risk. +# http://creativecommons.org/publicdomain/zero/1.0/ + +# The userv git daemon supports URLs of the forms: +# git://HOSTNAME/REPO.git +# git://HOSTNAME/~TILDE/REPO.git + +# The vhost_default_user hash specifies what user handles git requests +# for each virtual host, if the URL does not have a tilde part, or if +# the virtual host does not appear in the vhost_user_from_tilde hash. +# If a virtual host does not appear in this hash then URLs without a +# tilde part are forbidden for that virtual host. + +%vhost_default_user = ( + 'dotat.at' => 'fanf', +); + +# The vhost_user_from_tilde hash lists which virtual hosts allow the +# tilde part to specify the user that should handle the request. If a +# virtual host is not present in this hash then its default user +# handles all requests. If a virtual host is not present in either map +# then no requests are permitted. + +%vhost_user_from_tilde = ( + 'chiark.greenend.org.uk' => 1, +); + +# end -- 2.30.2