Using Subversion with Apache Virtual Hosts
I’ve been using Subversion for a while through SSH. Whilst upgrading my home server to Fedora Core 2 I decided to try implementing it through Apache WebDAV.
This is already well documented, but I wanted to be awkward – I wanted to host my repository behind a virtual host, and documentation for this is lacking so…
Simply add the following to your httpd.conf – I’m assuming you already know how to set up virtual hosts.
<VirtualHost *:80>
DocumentRoot /path/to/subversion/repositories
ServerName svn.example.com
ServerAlias svn
<Location />
DAV svn
SVNParentPath /path/to/subversion/repositories
</Location>
</VirtualHost>
This configuration will allow you to host multiple repositories located in /path/to/subversion/repositories under the virtual host svn.example.com – now you just need to figure out your permissions!
I thoroughly recommend the book “Version Control with Subversion” which is available in both dead tree and online formats.
About this entry
You’re currently reading “ Using Subversion with Apache Virtual Hosts ,” an entry on schwuk.com
- Published:
- 8.28.04 / 5am
- Category:
- Uncategorized
Comments are closed
Comments are currently closed on this entry.