Web-based Distributed Authoring and Versioning, or WebDAV, is a set of extensions to the Hypertext Transfer Protocol (HTTP) which allows users to collaboratively edit and manage files on remote World Wide Web servers.

Tutorial - http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Apache-WebDAV-LDAP-HOWTO.html#AEN228

Apache needs to be configured and compiled with the --enable-dav option.

Uncomment the WebDAV config file in /usr/local/apache2/conf/httpd.conf:

# Include conf/extra/httpd-dav.conf

The WebDAV config file, /usr/local/apache2/conf/extra/httpd-dav.conf, has the DavLockDB file location as /usr/local/apache2/var/DavLock so we'll need to create the directory for that, assuming it doesn't already exist:

cd /usr/local/apache2
mkdir var
chmod -R 755 var/
chown -R nobody:nobody var/

Also, edit the config file, /usr/local/apache2/conf/extra/httpd-dav.conf, and comment out the Directory section for /usr/local/apache2/uploads as that doesn't exist and we probably aren't going to use it anyways.

Create a WebDAV test directory:

cd /usr/local/apache2/htdocs
mkdir DAVtest
chmod -R 755 DAVtest/
chown -R nobody:nobody DAVtest/

Edit /usr/local/apache2/conf/extra/httpd-dav.conf and add a directive for our test directory:

<Directory "/usr/local/apache2/htdocs/DAVtest">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType Basic
    AuthName DAV-test
    # You can use the htpass program to create the password database:
    #   htpasswd -c "/usr/local/apache2/conf/webdav.passwd" admin
    AuthUserFile "/usr/local/apache2/conf/webdav.passwd"

    # Allow universal read-access, but writes are restricted
    # to the admin user.
    <LimitExcept GET OPTIONS>
        require user admin

Create the htpasswd file for the webDAV directory with an admin user:

/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/conf/webdav.passwd admin

Recent Updates

  • 11 months 1 week ago
  • 11 months 1 week ago
  • 11 months 1 week ago
    php 8.x
  • 11 months 1 week ago
  • 11 months 2 weeks ago
    Drop Centos 5/6 stuff