This has been simplified, and anonymized, but this should get you close 
to what you want.  We run svn over HTTPS, and have multiple 
repositories on our subversion web site with separate authentication 
for each repository.  The <Directory> block is thrown in there because 
it allows me to define the AuthType, AuthUserFile and AuthGroupFile 
only once, rather than once per <Location>.  This setup would also 
allow you to put regular HTML or CGIs or whatever you want in the 
DocumentRoot, as long as no URL there conflicts with one of the defined 
<Location>s.
NB John Szakmeister's caution about Issue 1934 
(http://subversion.tigris.org/issues/show_bug.cgi?id=1934) .. but I 
have not had this problem with subversion 1.0.6.
<VirtualHost *:443>
     ServerName      subversion.domain.com
     DocumentRoot    /var/www/html/svn
     # deleted various logging and SSL stuff here
     <Directory /var/www/html/svn>
         AuthType Basic
         AuthUserFile /etc/httpd/auth/htpasswd
         AuthGroupFile /etc/httpd/auth/htgroup
     </Directory>
     <Location /repo1>
         DAV svn
         SVNPath /var/svn/repo1
         AuthName "SVN Repository: repo1"
         Require group svn-repo1
     </Location>
     <Location /repo2>
         DAV svn
         SVNPath /var/svn/repo2
         AuthName "SVN Repository: repo2"
         Require group svn-repo2
     </Location>
</VirtualHost>
On Sep 13, 2004, at 17:25, Bart Peiren wrote:
> Hi list
>
> I am currently trying to set up a Subversion server using Apache.  
> I've read the Red Bean book, but I think my problem is related to 
> Apache instead of Subversion.  I'm using Apache 2.0.50 and Subversion 
> 1.0.6 on FreeBSD 5.2.1.
>
> We currently have used 'NameVirtualHost *' and <VirtualHost> to set up 
> 2 virtual hosts: (www.)domain.tld and subdomain.domain.tld.  I now 
> would like to have a third svn.domain.tld which would contain a bunch 
> of repositories so I can use them with 
> http://svn.domain.tld/Project1/trunk.  Right now, I have just added 
> this:
>
> <Location /svn>
>         DAV svn
>         SVNParentPath /home/svn/repos/
>         SVNIndexXSLT "/svnindex.xsl"
> </Location>
>
> With this added, I can use the url 
> http://svn.domain.tld/svn/Project1/trunk, but also 
> http://www.domain.tld/svn/Project1/trunk, which isn't exactly what I'm 
> looking for.  For starters, it should be accessible though 
> svn.domain.tld and, second, I don't want the /svn/ part.
>
> Any help would be appreciated.  I'm sure it's something fairly simple, 
> but I can't seem to find it.
>
> Thanks,
> Bart Peiren
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Matt Pounsett                 CIRA - Canadian Internet Registration 
Authority
Technical Support Programmer                    350 Sparks Street, 
Suite 1110
matt.pounsett@cira.ca                                 Ottawa, Ontario, 
Canada
613.237.5335 ext. 231                                      
http://www.cira.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 14 22:47:21 2004