I'm currently running three repositories with svnserve, all in /var/svn, all with a different passwd file (used by subversion, so /var/svn/the-repo/conf/passwd) of course. I'm also using apache with the DAV SVN module, like this:
<VirtualHost 127.0.0.1:8080>
ServerName svn.my-server.com
ErrorLog /var/log/virtualmin/svn.my-server.com/error_log
CustomLog /var/log/virtualmin/svn.my-server.com/access_log combined
<Location />
DAV svn
SVNParentPath /var/svn/
SVNListParentPath On
</Location>
</VirtualHost>
This is working perfectly. However, when I browse to http://svn.myserver.com/repo-1, I am not asked for authentication: I'm able to view everything without providing credentials.
I know how to make apache ask me for credentials using HTTP authentication. But what I would like, is to have apache use the same authentication as svnserve. Is this possible?
Later, I might add new repositories. I would like that I don't have to configure apache again, then.
I suppose it doesn't change anything, but I'm using nginx as a proxy to apache.