Now to configure our subversion to be accessed from the web, let add the directives needed. Open thesubversion configuration file found in the Apache conf.d directory:
# vim /etc/httpd/conf.d/subversion.conf
Add the following (Please change svn repository paths to suite your needs):<Location /svn>DAV svnSVNPath /usr/local/svnAuthzSVNAccessFile /usr/local/svn/conf/authzSatisfy AnyRequire valid-user AuthType BasicAuthName "Subversion repos"AuthUserFile /etc/httpd/htpasswd</Location>For security reasons and Access Controls to be used with the subversion, we used the"
" option. This is to help us make acl's on our repositories and give specificaccess rights to specific groups. The file holding our ACL in the above example is"
", you may use your own file location and name. Also, we are using here basic apache authentication, and we are storing user names and passwords in the file"
", you may use your own file location and name too. Save the "subversion.conf "file and exit. Now lets add some users for web access. For the first time, we shall be using the
option to create thefile, after that when creating anther user, we won't be needing this, because if you use it? you shallerase the current db and create a new one. Let's add a user called "admin", "ali", and "mohamed":
# htpasswd -cm /etc/httpd/htpasswd admin# htpasswd -m /etc/httpd/htpasswd ali# htpasswd -m /etc/httpd/htpasswd mohamed
Enter a password twice for each.