Collaborative Authoring with WebDAV

Apache with mod_dav

We'll compile mod_dav as a dynamic module for Apache:

  1. Untar Apache and mod_dav in /usr/src
  2. cd /usr/src/apache ;./configure --prefix=/usr/local/apache-dav --enable-module=most --enable-shared=max ; make ; make install
  3. cd ../mod_dav ; ./configure --with-apxs=/usr/local/apache-dav/bin/apxs ; make ; make install
  4. Edit /usr/local/apache-dav/conf/httpd.conf:
    1. Check that the following were added by APXS: "LoadModule dav_module         libexec/libdav.so", and "AddModule mod_dav.c"
    2. Add the following directive:

      <Location /mypages>
              DAV On
      </Location>
       
  5. Launch Apache: /usr/local/apache-dav/bin/apachectrl start
  6. Launch a WebDAV-capable, eg. Internet Explorer 5.x: File | Open = http://mylinux/mypages , and check Open as Web folder
  7. Upload a file to that remote directory by drag-n-droping it from Windows Explorer

At this point, everyone has write access to sub-directory /mypages. To limit this to selected users, see http://www.webdav.org/mod_dav/install.html .

Resources