(The apache2+SSL part was taken from the article Debian, Apache2 and SSL by Ian Miller)
Debian Sarge comes with an apache2 package. I thought I'd give this a go to get it working with a self signed SSL certificate. However, I had little idea of what I was doing. Eventually I worked it out - and it's easy:
apt-get install apache2
apache2-ssl-certificate
and tell it what it wants to know.
Listen 443
to /etc/apache2/ports.conf
NameVirtualHost *:443 <VirtualHost *:443> LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem ...
</VirtualHost>
/etc/init.d/apache2 restart
Try: https://hostname/
apt-get install libapache2-svn subversion subversion-tools
cd /home mkdir svn chown www-data svn su www-data -c "svnadmin create svn/src"
<Location /svn/src> DAV svn SVNPath /home/svn/src
AuthType Basic AuthName "My Subversion Repository" AuthUserFile /home/svn/.dav_svn.passwd Require valid-user </Location>
<LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept>
su www-data -c "htpasswd2 -c -m /home/svn/.dav_svn.passwd galactus"
su www-data -c "htpasswd2 -m /home/svn/.dav_svn.passwd ceruno" su www-data -c "htpasswd2 -m /home/svn/.dav_svn.passwd n"
Revision 0: / Powered by Subversion version 1.1.3 (r12730).
svn --username n import checkers https://localhost/svn/src -m "initial import" Authentication realm: <https://localhost:443> My Subversion Repository Password for 'n': Adding checkers/trunk Adding checkers/trunk/gendelta.pl Adding checkers/site Adding checkers/branches Adding checkers/tags
Committed revision 1.
Revision 1: / * branches/ * site/ * tags/ * trunk/ Powered by Subversion version 1.1.3 (r12730).
Links:
svnwiki $Rev: 1427 $