Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:web_dav

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

freebsd:web_dav [2013/12/16 14:42] (aktuell)
idefix angelegt
Zeile 1: Zeile 1:
 +====== ​ Web-Dav ​ ======
 +
 +Load the following modules in apache2
 +<​code>​
 +LoadModule dav_module ​        ​libexec/​apache2/​mod_dav.so
 +LoadModule dav_fs_module ​     libexec/​apache2/​mod_dav_fs.so
 +</​code>​
 +Configure WebDav:
 +<​code>​
 +<​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>​
 +</​code>​
 +
 +Create the directory and set permissions:​
 +<​code>​
 +mkdir -p /​var/​db/​DAV/​
 +chown www /​var/​db/​DAV/​
 +chgrp html /​var/​db/​DAV/​
 +chmod 775 /​var/​db/​DAV/​
 +</​code>​
 +
 +Create a directory and set the privileges for the webserver
 +<​code>​
 +mkdir /​usr/​home/​http/​default/​htdocs/​dav
 +chown idefix dav
 +chgrp html dav
 +chmod g+w dav
 +</​code>​
 +
 +Create the htdigest password file with:
 +<​code>​
 +htdigest -c filename realm username
 +</​code>​
 +
 +where realm is "DAV password required"​.
 +
 +Add the following lines to the apache2 configuration:​
 +<​code>​
 + <​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>​
 +</​code>​
 +
 +=====  Create calendar for Sunbird ​ =====
 +Go to the directory where the calendar should be saved and type:
 +<​code>​
 +echo "​BEGIN:​VCALENDAR"​ > private.ics
 +echo "​END:​VCALENDAR"​ >> private.ics
 +</​code>​
 +Configure Calendar or Sunbird with the URL
 +<​code>​
 +http:<​nowiki>//</​nowiki>​server/​calendar/​private.ics
 +</​code>​
  
freebsd/web_dav.txt · Zuletzt geändert: 2013/12/16 14:42 von idefix