Web-Dav

Dec 16, 2013
1 min read
May 31, 2023 18:15 EEST

Load the following modules in apache2

LoadModule dav_module         libexec/apache2/mod_dav.so
LoadModule dav_fs_module      libexec/apache2/mod_dav_fs.so

Configure WebDav:

<IfModule mod_dav.c>
  DavLockDB     /var/db/DAV/DAVLock
  BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
  BrowserMatch "Microsoft Data Access Internet Publishing Provider"  redirect-carefully
  BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
  BrowserMatch "^WebDrive" redirect-carefully
  BrowserMatch "^WebDAVFS" redirect-carefully
  BrowserMatch "^gnome-vfs" redirect-carefully
</IfModule>

Create the directory and set permissions:

mkdir -p /var/db/DAV/
chown www /var/db/DAV/
chgrp html /var/db/DAV/
chmod 775 /var/db/DAV/

Create a directory and set the privileges for the webserver

mkdir /usr/home/http/default/htdocs/dav
chown idefix dav
chgrp html dav
chmod g+w dav

Create the htdigest password file with:

htdigest -c filename realm username

where realm is “DAV password required”.

Add the following lines to the apache2 configuration:

 <Location /dav>
  DAV On
  AllowOverride AuthConfig
  AuthType Digest
  AuthName "DAV password required"
  AuthDigestDomain /dav/

  AuthDigestFile /usr/home/http/htdigest_passwd_dav
  Require valid-user

  order allow,deny
  allow from all
  Options Indexes Includes FollowSymLinks
 </Location>

Create calendar for Sunbird

Go to the directory where the calendar should be saved and type:

echo "BEGIN:VCALENDAR" > private.ics
echo "END:VCALENDAR" >> private.ics

Configure Calendar or Sunbird with the URL

http://server/calendar/private.ics

Related Posts