Set Up WebDAV for iCal Sharing on ubuntu 8.04
Enabling WebDAV for iCal publishing/sharing is fairly straightforward:
0. Install apache2 (if it’s not already installed):
sudo apt-get install apache2
1. Create a WebDAV directory in your DocumentRoot with the proper permissions:
mkdir -p /var/www/webdav
chmod -R 777 /var/www/webdav
2. Edit Apache2’s dav_fs.conf file:
cd /etc/apache2/mods-available
sudo vi dav_fs.conf
DAVLockDB /var/lock/apache2/DAVLock
<Directory “/var/www/webdav”>
DAV On
DAVMinTimeout 600
DAVDepthInfinity OnAllowOverride AuthConfig
AuthName “DAV Restricted”
AuthType Basic
AuthUserFile /etc/apache2/.htaccessRequire valid-user
</Directory>
3. Create symlinks to the proper DAV module files:
(Some of these will already exist. Leave them alone.)
cd ../mods-enabled
sudo ln -s ../mods-available/dav.load
sudo ln -s ../mods-available/dav_fs.conf
sudo ln -s ../mods-available/dav_fs.load
4. Create the ‘AuthUserFile’ indicated in step 2:
sudo htpasswd -m -c /etc/httpd/.htaccess webcal
5. Restart apache:
sudo /etc/init.d/apache2 restart
6. Publish your iCal!
Your url for publishing should now look like http://mywebhost/webdav/iCal/. Enjoy!
Based on a guide for Fedora at millan.info.