diff options
author | Tony Finch <dot@dotat.at> | 2010-03-26 17:16:34 +0000 |
---|---|---|
committer | Ian Jackson <ian@liberator.relativity.greenend.org.uk> | 2010-05-22 15:54:40 +0100 |
commit | 411c075bc8493bc35e479421d647ae746d62a368 (patch) | |
tree | 2dcb2d75b1e2eb989dcf0c023c2010d0b8037437 /git-daemon | |
parent | d2707bea0310c99c773c06f2bfe9a1c1f84bbb9e (diff) | |
download | userv-utils-411c075bc8493bc35e479421d647ae746d62a368.tar.gz |
git-daemon-vhosts.pl: A sample virtual host configuration file.
Diffstat (limited to 'git-daemon')
-rw-r--r-- | git-daemon/git-daemon-vhosts.pl | 31 |
1 files changed, 31 insertions, 0 deletions
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 <dot@dotat.at> +# 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 |