This is a tutorial on how to setup a Subversion repository on a subdomain with Apache. This assumes you have Subversion and Apache already installed on your system.
First you need to create a repository somewhere in your file system. Then grant apache permissions on that directory.
svnadmin create /var/svn/repository
sudo chown -R www-data:www-data /var/svn/repository
Access to the repo via the web will be controlled by an htpasswd file located at /
var/svn/svn-auth-file. Use the
htpasswd command to create the file.
htpasswd -c /var/svn/svn-auth-file <username>
Execute the script again without the -c argument to add more people to the list.
htpasswd /var/svn/svn-auth-file <username_two>
I usually setup Apache to use Names VirtualHosts to handle multiple websites. We'll make a new named virtualhost for subversion repository.
AuthName "Subversion repository"