I've the next setup:

<VirtualHost *:80>
    ServerName svn.project1.com

    <Location />
       DAV svn
       SVNPath /svn

<VirtualHost *:80>
    ServerName svn.project2.com

    <Location />
       DAV svn
       SVNPath /svn

After I navigate either to http://svn.project1.com/ or http://svn.project1.com/ it provides a directory listing with both databases:

Revision 1270: /

* project1/
* project2/

Powered by Subversion version 1.4.4 (r25188)

How do you get both hosts to suggest for their particular databases?

I wish to have the ability to use web addresses like:


Rather than:


And therefore prevent use of e.g. project2 from project1 viz:



This works together with SVNPath /svn/project#. But bear in mind, I believe this only works should you genuinely have two seperate databases. So far as I will tell out of your information, you are one repository for projects.

Unsure, but perhaps you have attempted this?

SVNPath /svn/project1/

While using the

SVNPath /svn/projectX/

should fix your condition, it'll expose a significant flaw in DavSVN. The flaw it has issues with being at the bottom directory of the domain. Getting random checkin errors that at the moment, don't have any solution available, was this type of problem we needed to switch from the subdomain to some subdirectory.

<Location /svn/>
     DAV svn
     SVNParentPath "D:\repos"
     SVNListParentPath On
     AuthName "Subversion repository"
     SVNPathAuthz on
     AuthType SSPI
     SSPIAuth On
     SSPIAuthoritative On
     SSPIOfferBasic On
     SSPIUsernameCase lower
     SSPIOmitDomain On
     AuthzSVNAccessFile "D:\repos\svnaccessfile.txt"
     Require valid-user