Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'WebDAV and iCal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
WebDAV and iCal
Authored by: datasmid on Sep 11, '02 03:14:39PM

To publish your iCal Calendar with Apache, edit apache's configuration file in /etc/httpd
(you must be root, so I expect you know vi and the workings of this file in general)

# vi /etc/httpd/htttpd.conf

In the Shared Library section where modules are loaded add these 2 lines in the same ordering in their repective sections:

LoadModule dav_module libexec/httpd/libdav.so
AddModule mod_dav.c

Then somewhere in the global section add:
DAVLockDB /Library/WebServer/davlocks/DAVLockDB

I used this section to have a webdav folder managed by Apache:

<Directory "/Library/WebServer/Documents/dav">
DAV On
AuthName 'WebDAV'
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
AuthGroupFile /dev/null
<LimitExcept GET HEAD OPTIONS>
require valid-user
</LimitExcept>
</Directory>

I want this folder protected (somewhat) by a password, to generate the password file
with MD5 passwords (not that old crypt!) please use the -m flag. the file is text.
Note that http is vulnarable to sniffing attacks, someone on your network can get at your password.

# htpasswd -m -c /etc/httpd/.htpasswd user
New password: not_safe
Re-type new password: not_safe
Adding password for user user


Then set up the folder with permissions...

cd /Library/WebServer/
mkdir davlocks
chown www:www davlocks
cd Documents
mkdir dav
chown www:www dav

iCal Publish Calendar to http://localhost/dav/iCal

Do not ftp stuff in the dav folder, webdav uses it's own locking, don't confuse it.

Good Luck

Datasmid





[ Reply to This | # ]