Tags:
create new tag
, view all tags

FreeBSD setup of WebDAV

  • These are the steps I followed. I thought this task complex enough to be of use to others.
  • assume for "me.com"

TWiki dav plugin config

install support tools

install tbd

  • portinstall databases/tdb

port for TDB_File

  • Port sources attached
  • p5-TDB_FIle.tgz: FreeBSD port of TDB_File
  • tar xpzf p5-TDB_File.tgz -C /usr/ports/databases/p5-TDB-File
  • portinstall databases/p5-TDB_File

Install mod_dav

rm -f config.cache
export CC=cc
export CPPFLAGS="-O -pipe -I/usr/local/include"
./configure --prefix=/usr/local --bindir=/usr/local/bin --sbindir=/usr/local/sbin \
 --libexecdir=/usr/local/libexec/apache --mandir=/usr/local/man \
 --sysconfdir=/usr/local/etc/apache --datadir=/usr/local/share/apache \
 --includedir=/usr/local/include/apache --with-apxs=/usr/local/sbin/apxs
make ; make install ; make clean

httpd.conf setup

  • These go int the httpd.conf somewhere
   LoadModule dav_module         libexec/apache/libdav.so
   AddModule mod_dav.c

#  on per system
   DAVLockDB /var/lock/webdav
   DAVMinTimeout 600
   DAVMonitor 7
  • I use "VirtualHost" for each wiki, here are the lines applied for reference
<VirtualHost x.x.x.x>
# uses "shorter urls"
AccessFileName .htaccess
DocumentRoot /usr/local/twiki/me/private
ServerName me.com
LogLevel debug
ErrorLog /usr/local/twiki/me/private/log/httpd-error.log
CustomLog /usr/local/twiki/me/private/log/httpd-access.log combined env=!nolog
Alias /bin "/usr/local/twiki/me/private/bin"
Alias /pub "/usr/local/twiki/me/private/pub"
Alias /data "/usr/local/twiki/me/private/data"
Alias /robots.txt "/usr/local/twiki/me/private/robots.txt"
Alias /favicon.ico "/usr/local/twiki/me/private/pub/favicon.ico"
Alias / "/usr/local/twiki/me/bin/view/"

   <Directory "/usr/local/twiki/me/private">
        Deny from all
        Options -Indexes FollowSymLinks
#       This allows .htaccess
        AllowOverride AuthConfig
   </Directory>

   <Directory "/usr/local/twiki/me/private/bin">
        Options +ExecCGI
        Allow from all
        AllowOverride None
        SetHandler cgi-script
   </Directory>

   <Directory "/usr/local/twiki/me/private/pub">
       Allow from all
       Options FollowSymLinks
       AllowOverride None
       <LimitExcept GET HEAD OPTIONS>
           Require user fred barney
       </LimitExcept>

       DAV on
       TWikiDir data /usr/local/twiki/me/private/data
       TWikiScript /usr/local/twiki/me/private/bin/dav.pl
   </Directory>

   <Directory "/usr/local/twiki/me/private/data">
       Allow from all
       Options FollowSymLinks
       AllowOverride None
       <LimitExcept GET HEAD OPTIONS>
           Require user fred barney
       </LimitExcept>

       DAV on
       TWikiDir data /usr/local/twiki/me/private/pub
       TWikiScript /usr/local/twiki/me/private/bin/dav.pl
   </Directory>
   <Directory "/usr/local/twiki/me/private/templates">
       deny from all
       AllowOverride None
   </Directory>
   <Directory "/usr/local/twiki/me/private/lib">
       deny from all
       AllowOverride None
   </Directory>

  • apachectl configtest

Check it out with a UNIX command line client

Install a good Windows client

-- DanDees - 10 Nov 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetgz p5-TDB_File.tgz r1 manage 0.9 K 2004-11-10 - 03:01 UnknownUser FreeBSD port of TDB_File
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-11-10 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.