Apache vhost with SVN

Here is a pretty short description to make a single SVN repository directly accessible via a domain with Apache as webserver.

Creating an empty SVN repositories

First, a SVN Repository is required, which should then be accessible via Apache.

cd ~
mkdir svn
cd svn
svnadmin create apachesvn
            

It was created in the home directory of the user an empty SVN repository named apachesvn.
With the help of our documentation "SVN Dump / Restore" might as well be imported a SVN Dump.

Configuring Apache vhost

Here is an existing vhost file of the Apache that is expanded.
It will be added to the vhost for the SVN repository. Since it is a single repository, which will be accessible via the domain directly, recommends following up.

nano /etc/apache2/sites-enabled/vhosts
            

Then add the following

<VirtualHost 192.168.1.112:80 >
 ServerName "svndirect.testserver.saas-secure.com"

 <Location />
  DAV svn
  SVNPath /home/anyuser/apachesvn
 </Location>

</VirtualHost>
            

Now just restart Apache and access should be possible.

/etc/init.d/apache2 restart
            
Status: 2015-10-15