Assuming that apache is installed!
- Install packages
apt-get install subversion libapache2-svn libapache-mod-dav - Enable SSL
a2enmod
Add “Listen 443″ into httpd.conf if needed. - Install SSL
apt-get install ssl-cert
mkdir /etc/apache2/ssl
/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/site-name.crt - Adding Basic Authentication:
htpasswd2 -c -m /home/path-to/svn/project/.htpasswd username - Configure site
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site-name
nano /etc/apache2/sites-available/site-name<VirtualHost IP_ADDRESS:443>
ServerName hostname
DocumentRoot /home/path-to/svnSSLEngine on
SSLCertificateFile /etc/apache2/ssl/site-name.crt
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM<Directory “/home/path-to/svn”>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from All
SSLRequireSSL
</Directory>### project
<Location “/svn/project”>
AuthType Basic
AuthName “Subversion Login”
AuthUserFile /home/path-to/svn/project/.htpasswd
Require valid-user
</Location>
</VirtualHost>a2ensite $SITENAME
/etc/init.d/apache2 restart - Adding repository
mkdir /home/path-to/svn
svnadmin create /home/path-to/svn/repos
chown -R www-data:www-data /home/path-to/svn/repos
chmod -R g+ws /home/path-to/svn/repos - Enabling SVN
Edit /etc/apache2/mods-available/dav_svn.conf
DAV svnFor non-anonymous access comment out:
SVNParentPath /home/path-to/svn (for multi repositories)
SVNPath /home/path-to/svn (for single repository)
#<LimitExcept GET PROPFIND OPTIONS REPORT>
#</LimitExcept> - Finalization
/etc/init.d/apache2 restart - Initial Import and Checkout
svn import --username username files https://hostname/svn/repos/testdir -m “Testing”
svn co --username username https://hostname/svn/repos









