Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Router Charts

Click for Router Charts

Router Ranker

Click for Router Ranker

NAS Charts

Click for NAS Charts

NAS Ranker

Click for NAS Ranker

More Tools

Click for More Tools

Devices

WebDAV Configuration

Next, we need to edit that httpd-dav.conf file we just enabled. Since we're already in the apache2 directory, just change directory into the extra directory, and edit that file, remembering to sudo again. On OS X, the default file should look like this:

#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
#                   mod_auth_digest, mod_authn_file
#

# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.

DavLockDB "/usr/var/DavLock"

Alias /uploads "/usr/uploads"

<Directory "/usr/uploads">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType Digest
    AuthName DAV-upload

    # You can use the htdigest program to create the password database:
    #   htdigest -c "/usr/user.passwd" DAV-upload admin
    AuthUserFile "/usr/user.passwd"
    AuthDigestProvider file

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

You can go ahead and delete everything after the DavLockDB "/usr/var/DavLock" line.

As noted in the Requirements, you should already have a cloud storage provider account, because we're going to need some information from it shortly. If you're not set up, go do that now, because next we're going to edit httpd-dav.conf to point to a folder associated with your cloud provider.

Here's what my configuration wound up looking like (added after the DavLockDB "/usr/var/DavLock" line):

Alias /dropdav "/Users/*USERNAME*/Dropbox"

<Directory "/Users/*USERNAME*/Dropbox">
  Dav On
  Order Allow,Deny
  Allow from all

  AuthType Basic
  AuthName WebDAV-Realm
  AuthUserFile "/usr/webdav.passwd"

  <LimitExcept GET OPTIONS>
    require user *USERNAME*
  </LimitExcept>
</Directory>

Explanation time! Anywhere you see *USERNAME*, replace it with your true username on your computer. On Linux, you can replace /Users/ with /home/ in most cases. Windows Vista & 7 also use /Users/ although you might have to use C:\Users\... in order to get Apache to traverse the path correctly.

The alias line makes it so http://localhost/dropdav will traverse the file structure correctly to your cloud folder, without you having to type the path in, or jump through a bunch of configuration hoops.

The stuff between the Directory tags sets up all of what we need to get WebDAV working. As you might have noticed, I switched the AuthType to Basic from Digest, due to compatibility issues with some programs and Digest.

Apples' Pages supposedly doesn't have this problem. But since I connect over a VPN, having passwords sent in clear text isn't an issue.

If you are going the port-forwarding route, keep the Digest option and follow the instructions in the original file to create the username / password file.

Speaking of usernames and passwords, that's it there in the AuthUserFile directive. I left it in its default place to keep it away from other OS X users on the system. But on Linux, you might want to find a better hiding spot since a lot of stuff lives in /usr/.

Finally, we require the username to be used inside the <LimitExcept> tags. That username must exist in the password file.

More Stuff

Wi-Fi System Tools
Check out our Wi-Fi System Charts, Ranker and Finder!

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Over In The Forums

Split-horizon DNS, split-view DNS, split-brain DNS, or split DNS is the facility of a DNS implementation to provide different sets of DNS information ...
Hi,Is it possible to do inbox replace/upgrade to any newer QNAP or any other DIY NAS version?I would like to replace the h/w with the better one and u...
Hello, been reading for a long time, got 6x RT-AC68U with 384.17No problems but an annoying issue, so lets jump in at the deep end. 4g providers are m...
Since today I get the "curl: (60) SSL certificate problem: certificate has expired" error on one site:Code: # curl -v https://www.myip.ms/files/black...
I'm in a special situation and any idea might help me a lot.I have an EA2750 router (I don't remember the exact firmware version, but it's one of the ...

Don't Miss These

  • 1
  • 2
  • 3