Did you already create an subversion repository? If not, then do it:
- Code: Select all
svnadmin create /path/for/the/repo
Then you can put something like this to your vHost-Configuration:
- Code: Select all
<VirtualHost *:80>
ServerName svn.example.com
<Location />
DAV svn
SVNPath /path/for/the/repo
AuthType Basic
AuthName "SVN"
AuthUserFile /path/to/your/.htpasswd
Require valid-user
</Location>
</VirtualHost>
If you do not want to create an subdomain, then you could use something like this into your httpd.conf:
- Code: Select all
<Location /svn>
DAV svn
SVNPath /path/for/the/repo
AuthType Basic
AuthName "SVN"
AuthUserFile /path/to/your/.htpasswd
Require valid-user
</Location>
In the first example, you would open up svn.example.com, in the second example it is example.com/svn
glitzi