Apache vhost with SVN

A brief description to make to a single SVN Repository directly via a domain accessible.

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
svn-apache-vhost-acl
How do you like the article?
3.55 Currently 3 Ratings = 3.5star_rate

commentLeave a comment

aSqCRe96YFHr7