This document explains how to configure an Elemental Linux Server system to support WebDAV for the purpose of sharing Mozilla Sunbird and other iCalendar-based software.
You will need to have httpd installed on the ELS machine as well as access to a client machine with Mozilla Sunbird installed. See the ELS Howto: Apache Web Server for help setting up httpd.
Other than Apache httpd, there is no additional software than needs to be installed. However, you'll need to create a directory to hold the shared calendars and give it the proper permissions.
The following example shows how you might create a shared calendar directory if /home/httpd is the web server's document root.
mkdir /home/httpd/upload mkdir /home/httpd/upload/calendars chown -R daemon /home/httpd/upload
The following procedure outlines how to set up WebDAV with Apache httpd for the purpose of uploading shared calendars. These instructions assume that a non-WebDAV configuration of httpd is already set up and working.
The following example shows how httpd-dav.conf might be configured to allow uploads into the /home/httpd/upload directory by a user named Joe of a realm called 'Upload'.
DavLockDB "/var/opt/httpd/DavLock" <Directory "/home/http/upload"> Dav On Options Indexes # Allows directory listing AuthType Digest AuthName Upload AuthUserFile "/etc/opt/httpd/user.passwd" AuthDigestProvider file <RequireAny> Require method GET POST OPTIONS Require user joe </RequireAny> </Directory>
These modules need to be uncommented in httpd.conf to enable WebDAV.
LoadModule alias_module modules/mod_alias.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_core_module modules/mod_authn_core.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dav_lock_module modules/mod_dav_lock.so LoadModule setenvif_module modules/mod_setenvif.so
Creating the user for WebDAV uploads requires this command.
htdigest -c /etc/opt/httpd/user.passwd upload joe
If you have follow all the steps above and things are not working out with the configuration test, try the following: