I am using VirtualSVN + Trac-plugin on Windows for multi-projects. I have configured users and groups in VirtualSVN, so that only authorized users/groups can access specified resource.
For instance:
- Customer1 can access Repository1 and Trac1
- Customer2 can access Repository2 and Trac2
- Anonymous cannot access any svn repository.
On my system, once Customer2 is logged in, he can access Repository2, Trac2 but also Trac1. This is not as expected.
The apache configuration part for svn
<Location /svn>
DAV svn
SVNListParentPath off
SVNParentPath "D:/repos/svn"
SVNPathAuthz on
AuthName "Subversion Repositories"
AuthType Basic
AuthBasicProvider file
AuthUserFile "D:/repos/svn/htpasswd"
AuthzSVNAccessFile "D:/repos/svn/authz"
require valid-user
</Location>
The apache configuration part of Trac
LoadModule python_module "trac/python/mod_python_so.pyd"
LoadModule authz_user_module "bin/mod_authz_user.so"
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "d:/repos/trac"
PythonOption TracUriRoot /trac
AuthName "Trac"
AuthType Basic
AuthBasicProvider file
AuthUserFile "d:/repos/svn/htpasswd"
Require valid-user
</Location>
I tried to declare AuthzSVNAccessFile "D:/repos/svn/authz" for Trac. But it does not work definitively.
Can anyone help me to make this correct? Thanks in advance.