I am trying to configuring Subversion (SVN) on our Bluehost VPS server which has CentOS v6.5. So far, Installation went smoothly by following this guide -> http://wiki.centos.org/HowTos/Subversion
However, now I am stuck at its 4.2 step [Subversion's Apache configs].
Ok so here the story goes.
Mostly on web the guides to install Subversion (svn) on bluehost are for shared server for whom the steps on CentOS official wiki page of Subversion (let's call it A) doesn't work hence they follow this guide (let's call it B).
The module mod_dav_svn allows subverion to be served via Apache, because its installation is not allowed on shared server thats what I have learned. Hence many people fall for guide B, which can work for us by establishing svn connection over ssh (svn+ssh) however I am trying to bend the spoon to see if svn connection can be established over apache.
Following guide A
I have a url svn.domain.com
pointing to /home/username/public_html/svn.domain.com/
in which I have setup the repositories named repos1
and have setup subversion.conf file in /etc/httpd/conf.d/subversion.conf
as following
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repos1>
DAV svn
SVNPath /home/username/public_html/svn.domain.com/repos1
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>
and opening http://svn.domain.com/repos1 it displays plain contents of the directory located in /home/username/public_html/svn.domain.com/repos1
.
Where I assume it should ask for password and display Revision 0 or at least trunk, branch and tag folders.
Any help or direction would be appreciated.
- 1: repos1 folder is created by
svnadmin create repos1
command. - 2: This setup has worked for us on different server but they have very very limited space.
Best Answer
Try this
<Location "/"> AuthType Basic AuthName "Subversion repos" AuthUserFile /etc/svn-auth-conf Require valid-user </Location> <Location /repos1> DAV svn SVNPath /home/username/public_html/svn.domain.com/repos1 </Location>
Don't forget to reload Apache.