Login
Log into OS X with an admin acount
Prepare the local WebServer
Start the application: Terminal
BTW: arrow up retrieves the last command, tab does autoexpansion
if the command asks for a password use your normal login password!
then type the following:
sudo cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.orig
cp /etc/httpd/httpd.conf ~/
open -a TextEdit ~/httpd.conf
In the now open httpd.conf find "dav"
and remove the hashes before
#LoadModule dav_module libexec/httpd/libdav.so
#AddModule mod_dav.c
go to the end of the file. Before the Include ... -line add the following lines:
DAVLockDB /etc/httpd/dav/DAVLock
DAVMinTimeout 600
<Location /dav/>
DAV On
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /etc/httpd/dav/.passwd
<LimitExcept GET HEAD OPTIONS>
Require valid-user
</LimitExcept>
</Location>
Save the file and quit TextEdit
sudo cp ~/httpd.conf /etc/httpd/httpd.conf
Prepare the directories
in the shell type:
sudo mkdir /Library/WebServer/Documents/dav
sudo chgrp www /Library/WebServer/Documents/dav
sudo chmod 775 /Library/WebServer/Documents/dav
sudo mkdir /etc/httpd/dav
sudo chgrp www /etc/httpd/dav
sudo chmod 775 /etc/httpd/dav
Make a user (take care: do not use usual passwords, use a new one for blabla):
sudo htpasswd -c /etc/httpd/dav/.passwd davuser
New password: blabla
Re-type new password: blabla
Adding password for user davuser
Start the local WebServer
sudo apachectl restart
Test it
Finder
Go->Connect to Server
User is: davuser Password is: blabla
should connect
Publish MyCal
leftclick on the calendar MyCal->Publish
Calendar: MyCal
Publish on: A private Server
User is: davuser Password is: blabla
Subscribe to MyCal
Menu->Calendar->Subscribe
User is: davuser Password is: blabla
That’s it! Enjoy!
© Sight GmbH 2006