Collaborative Authoring with WebDAV
Apache with mod_dav
We'll compile mod_dav as a dynamic module for Apache:
- Untar Apache and mod_dav in /usr/src
- cd /usr/src/apache ;./configure --prefix=/usr/local/apache-dav --enable-module=most
--enable-shared=max ; make ; make install
- cd ../mod_dav ; ./configure --with-apxs=/usr/local/apache-dav/bin/apxs
; make ; make install
- Edit /usr/local/apache-dav/conf/httpd.conf:
- Check that the following were added by APXS: "LoadModule dav_module
libexec/libdav.so",
and "AddModule mod_dav.c"
- Add the following directive:
<Location /mypages>
DAV
On
</Location>
- Launch Apache: /usr/local/apache-dav/bin/apachectrl start
- Launch a WebDAV-capable, eg. Internet Explorer 5.x: File | Open = http://mylinux/mypages
,
and check Open as Web folder
- 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