Multiple SVN repos on Debian HTTPd vhost setup

Posted by Jonathon Reinhart on Super User See other posts from Super User or by Jonathon Reinhart
Published on 2012-03-20T03:30:03Z Indexed on 2012/03/20 5:32 UTC
Read the original article Hit count: 567

Filed under:
|
|
|
|

I would like to have my svn/http server setup so I can access multiple repositories via a "svn" subdomain:

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?

© Super User or respective owner

Related posts about debian

Related posts about apache