% 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>
with MD5 passwords (not that old crypt!), please use the -m flag. The file is text. Note that http is vulnarable to sniffing attacks, so someone on your network can get at your password.
% 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
Good Luck!
[Editor's note: I have not yet tried this one out...]

