[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Determine repositor based on ssh host

From: Clint Priest <cpriest_at_warpmail.net>
Date: 2005-12-28 06:14:38 CET

That should work, thanks!

Max Bowsher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
>>
>> -and-
>>
>> 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.
>
> Max.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Cygwin)
>
> iD8DBQFDsetSfFNSmcDyxYARAiGPAJsGoGU/hkEWX+5Ny+b/EKjCQ1P1kQCfVACd
> 5i4CdXTsGgxclx1Y0BjrwBM=
> =Lg0g
> -----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 28 06:17:15 2005

This is an archived mail posted to the Subversion Users mailing list.