

Re: Determine repositor based on ssh host

From: Max Bowsher <maxb1_at_ukf.net>
Date: 2005-12-28 12:39:12 CET

Hash: SHA1

Kalin KOZHUHAROV wrote:
> Max Bowsher wrote:
>>Clint Priest wrote:
>>>>Hey there,
>>>>I'm new to using subversion and it just rocks, quite amazing! I'm
>>>>trying to figure out how I can do something similar to virtual hosting,
>>>>except using ssh.
>>>>Ideally I would like to be able to do something like:
>>>>svn checkout svn+ssh://user@host1.example.com/project/trunk
>>>>svn checkout svn+ssh://user@host2.example.com/project2/trunk
>>>>Where host1.example.com and host2.example.com are really the same
>>>>machine, however authenticating by the different host would select a
>>>>different 'svnserve -r /path/to/repos' command.
>>>>Can you think of any way to do this?
>>The only possibility I can see is if the two hostnames actually resolve
>>to separate IP addresses - i.e. IP-based virtual hosting, not name-based
>>virtual-hosting. If this was the case, you could replace svnserve with a
>>wrapper which looked at the SSH_CONNECTION environment variable.
> A bit of debuggind and I think the above is not possible:
> Everyhting is converted to IP addresses.

Uhh, yes, so? That's exactly why I specified separate IP addresses were


> On a side note, why do you want svn+ssh? Just go with https and you have the apache name based
> virtual hosting for free :-)

Possible, though you would need a special wildcard SSL certificate to
avoid certificate validation errors, since (as currently deployed) HTTPS
is only capable of supporting name-based virtual hosting for a group of
subdomains having a common parent domain.

Version: GnuPG v1.4.1 (Cygwin)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
Received on Wed Dec 28 12:42:02 2005
