To publish your iCal Calendar with the bundled OS X Apache web server, 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.
% sudo vi /etc/httpd/htttpd.confRead the rest for the specific edits...
In the Shared Library section, where modules are loaded, add these two lines in the same ordering in their repective sections:
LoadModule dav_module libexec/httpd/libdav.soThen somewhere in the global section add:
AddModule mod_dav.c
DAVLockDB /Library/WebServer/davlocks/DAVLockDBI used this section to have a webdav folder managed by Apache:
<Directory "/Library/WebServer/Documents/dav">I want this folder protected (somewhat) by a password. To generate the password file
DAV On
AuthName 'WebDAV'
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
AuthGroupFile /dev/null
<LimitExcept GET HEAD OPTIONS>
require valid-user
</LimitExcept>
</Directory>
% htpasswd -m -c /etc/httpd/.htpasswd userThen set up the folder with permissions.
New password: not_safe
Re-type new password: not_safe
Adding password for user user
% cd /Library/WebServer/In iCal, choose Publish Calendar and specify http://localhost/dav/iCal. Do not FTP stuff into the dav folder; webdav uses its own locking, don't confuse it.
% mkdir davlocks
% chown www:www davlocks
% cd Documents
% mkdir dav
% chown www:www dav
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020912065811863