chiark / gitweb /
git-daemon-vhosts.pl: A sample virtual host configuration file.
[userv-utils.git] / git-daemon / git-daemon-vhosts.pl
1 # Configuration file for the userv git daemon.
2 #
3 # This was written by Tony Finch <dot@dotat.at>
4 # You may do anything with it, at your own risk.
5 # http://creativecommons.org/publicdomain/zero/1.0/
6
7 # The userv git daemon supports URLs of the forms:
8 #       git://HOSTNAME/REPO.git
9 #       git://HOSTNAME/~TILDE/REPO.git
10
11 # The vhost_default_user hash specifies what user handles git requests
12 # for each virtual host, if the URL does not have a tilde part, or if
13 # the virtual host does not appear in the vhost_user_from_tilde hash.
14 # If a virtual host does not appear in this hash then URLs without a
15 # tilde part are forbidden for that virtual host.
16
17 %vhost_default_user = (
18         'dotat.at' => 'fanf',
19 );
20
21 # The vhost_user_from_tilde hash lists which virtual hosts allow the
22 # tilde part to specify the user that should handle the request. If a
23 # virtual host is not present in this hash then its default user
24 # handles all requests. If a virtual host is not present in either map
25 # then no requests are permitted.
26
27 %vhost_user_from_tilde = (
28         'chiark.greenend.org.uk' => 1,
29 );
30
31 # end