Yay, it's up and running! And here are the steps to do it, mostly copied directly from the shell as I ran them. In any case, it may or may not work for you, so make sure you check with the proper documentation if anything fails.
By the way: Back up old repositories if you have any!
Install the software:
sudo apt-get install apache2 libapache2-svn openssl ssl-cert subversion
Create directory for server certificates:
sudo mkdir /etc/apache2/certs
Create password-free SSL certificate (remember what you put as "Host Name"
for the next step):
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/certs/server.pem
Add the Apache certificate settings to
/etc/apache2/httpd.conf (use the "Host Name" value from the
previous step instead of "example.org" to avoid a warning in
ServerName example.org SSLEngine on SSLCertificateFile /etc/apache2/certs/server.pem
Enable Apache SSL module (necessary for HTTPS):
sudo a2enmod ssl
Create directory for Subversion repository files:
sudo mkdir /var/lib/svn
If you have any old repositories, copy them to
/var/lib/svn/, and make sure the Apache user can read &
sudo chown -R www-data:www-data /var/lib/svn/
Create Apache's Subversion password file with one user (replace
username with one of your choice):
sudo htpasswd -c /etc/apache2/dav_svn.passwd username
Uncomment the following lines in
/etc/apache2/mods-available/dav_svn.conf to point Apache to
<Location /svn> DAV svn SVNParentPath /var/lib/svn AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/dav_svn.passwd Require valid-user
Disable the default site (it clashes with the SSL settings somehow):
sudo a2dissite default
- Restart Apache:
sudo /etc/init.d/apache2 restart
Test (replace repository_name with an existing repository
svn co https://localhost/svn/repository_name
No webmentions were found.