安装 apache 的 svn 支持

aptitude install libapache2-svn

svn.apache.conf 配置文件内容

<Location /svnroot>
  DAV svn
  SVNParentPath /home/rex/svnroot

  # Authentication: Basic
  AuthName "Subversion repository"
  AuthType Basic
  AuthBasicProvider file
  AuthUserFile /home/rex/trac.htpasswd

  # Authorization: Authenticated users only
  Require valid-user

  # Authorization: Path-based access control; authenticated users only
#  AuthzSVNAccessFile /path/to/access/file
</Location>

重启 apache 后即可通过 dev.sample.com/svnroot/repos1 访问 svn 仓库