- Useful Article
on configuring apache on Ubuntu to work with subversion. Also has bit about creating an SSL certificate.
- a2enmod to turn on/off apache 2 modules in Ubuntu
Sample webdav for future reference:
#
# Global Settings
#
DavLockDB /var/lock/apache2/DavLock
#
# Webdav
#
Alias /webdav /home/webdav
<Directory /home/webdav>
Order allow,deny
Allow from all
Options Indexes
</Directory>
<Location /webdav>
DAV On
</Location>
#
# SVN configuration
#
<Location /repos>
DAV svn
SVNPath /home/svn/repos
# how to authenticate a user
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /home/svn/svn-apache-users
# For any operations other than these, require an authenticated user.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
Apache
Apache 2 comes pre-installed.
- /etc/apache2 is the default configuration location. These files are in svn.
- /var/www is the default document root
- www-data is the apache user
To turn on modules for webdav:
$ a2enmod dav $ a2enmod dav_lock $ a2enmod dav_fs
Configure /var/lock/apache2 permissions correctly per apache's manual
:
$ cd /var/lock $ chmod 775 apache2 $ chown www-data:www-data apache2
Made entries in machine.conf and restarted:
$ /etc/init.d/apache2 force-reload
Add new attachment
Only authorized users are allowed to upload new attachments.