Apache: July 2003 Archives
Installing mod_dav as DSO for apache 1.3.x
1. Download mod_dav from http://www.webdav.org/mod_dav/mod_dav-1.0.3-1.3.6.tar.gz (http://www.webdav.org/mod_dav/)
2. Once you've downloaded the package and extracted it using gunzip and/or tar, it should just be a case of:
./configure --with-apxs=/usr/local/apache/bin/apxs
make
make install
3. Check if the following line is present in your httpd.conf file:
LoadModule dav_module libexec/libdav.so
4. WebDAV module has been successfully installed.
Configuring mod_dav
1. edit httpd.conf, add the following lines:
DAVLockDB /tmp/DAVLock
DAVMinTimeout 600
2. Edit your VirtualHost configuring for your domain.
<Location /dav/ >
DAV On
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /www/www.domain.com/.htpasswd
<LimitExcept GET HEAD OPTIONS>
Require user webdav
</LimitExcept>
</Location>
3. to create our password file (unless we're using an existing one) and if necessary the directory we're enabling with WebDAV:
htpasswd -c /www/www.domain.com/.htpasswd webdav
4. restart apache for the configuration to be effective:
/usr/local/apache/bin/apachectl restart
Testing your Setup
If you are using Mac OS X, probably the easiest way to test it is to share one of your calendars in iCal. Choose Publish from the Calendar menu, choose Publish from a Web Server and enter the full URL of your server and DAV-enabled directory, then enter the username and password you set. Assuming everything has gone correctly, you should have published your calendar to the WebDAV share.
Under Windows, Windows 98, Me, 2000 and XP can all access a Web Share (the Microsoft term for a WebDAV-enabled directory). Use the Add a Network Place wizard, either through the links in the My Network Places window or through a standard File Open/Save dialog and enter the URL - you'll be prompted for a username and password.
