Multiple SVN repos on Debian HTTPd vhost setup
- by Jonathon Reinhart
I would like to have my svn/http server setup so I can access multiple repositories via a "svn" subdomain:
https://svn.example.com/repo1
https://svn.example.com/repo2
I am using Debian 6, and already have multiple vhosts set up via the standard sites-available method.
Resources and their problems:
How To: subversion SVN with Apache2 and DAV
This one doesn't deal with a server with multiple vhosts.
Installing and Configuring Subversion
This one only considers one subversion repository.
This one does show putting the SVN DAV <Location> in the svn vhost file.
However, it doesn't say whether to put it inside or outside the <VirtualHost> tag.
Does this really limit the subversion access to just that vhost? I just tried, and can access /foorepo from any subdomain.
Setting Up Subversion And Trac As Virtual Hosts On An Ubuntu Server
This one appears to be very close, but I can still access repos from any vhost. In other words, it doesn't matter what subdomain I specify, as long as the path matches the repo name. Doesn't make any sense. And yes, my <Location> tag is inside the <VirtualHost>.
A lot of these articles seem to have been written in 2006 or earlier, and don't necessarily conform to the configuration methods that newer distros are using.
Can anyone guide me in the right direction?