On 3/10/2011 12:59 PM, Daniel F. Garcia wrote:
I have an apache server that has an alias of *.mydomain.com. What I want is to
setup svn paths that switch to different repositories according to the
subdomain. E.g.
http://subdomain1.mydomain.com/svn -> /var/svn/subdomain1
http://subdomain2.mydomain.com/svn -> /var/svn/subdomain2
http://subdomain2.mydomain.com/svn -> /var/svn/subdomain3
I setup a repository that used the SVNParentPath directive, then had a bunch of
mod_rewrite rules to do all the mapping. I almost got it working. It worked in
a web browser and repo browser but I could not do a checkout.
Any ideas for a different approach? Has anyone done this successfully?
Daniel F Garcia
I don't use SVNParentPath because I have a limited number of
repositories and don't add them on a regular basis. Instead I use
VirtualHost directives:
<VirtualHost 1.2.3.4:80>
ServerName subdomain1.mydomain.com
<Location /svn>
DAV svn
SVNPath /var/svn/subdomain1
...
</Location>
...
</VirtualHost>
Note that VirtualHost directives are incompatible with https: access
because the destination host name is encrypted with the rest of the
packet data and Apache can't decrypt the packets before directing them.
--
David Chapman dcchap...@acm.org
Chapman Consulting -- San Jose, CA