The Sites Repository
Setting up the Sites repository
(These instructions assume the server has been set up using the sprinkle provisioning script -- an example of how to do that is here.)
sudo mkdir -p /var/svn
sudo svnadmin create /var/svn/sites
sudo chown -R www-data:www-data /var/svn/sites
sudo touch /var/svn/.passwd
sudo htpasswd .passwd user
Create and edit /var/svn/.access:
[sites:/]
user = rw
Create and edit /etc/apache2/apps/000-repo.conf:
<VirtualHost *:80>
ServerName repo.`hostname`
<Location />
Order allow,deny
Allow from all
DAV svn
SVNParentPath /var/svn
AuthzSVNAccessFile /var/svn/.access
AuthType Basic
AuthName "Blueprint Sites repository"
AuthUserFile /var/svn/.passwd
Require valid-user
</Location>
</VirtualHost>