Apache WebDAV setup compatible with Windows

Windows supports mounting WebDAV shares as drives. WebDAV is a HTTP protocol for file access used by for example SharePoint.

It does however not support basic auth by default (basic auth sends password in cleartext, which is bad). It took me some troubleshooting to figure it out so I thought I’d share my results. You’ll probably need basic knowledge of setting up and troubleshooting Apache sites as I’ve left out some details. See this tutorial on setting up basic WebDAV. The following builds on this tutorial, but adds digest auth in addition. Note that to mount WebDAV on Windows Server you need Desktop Experience feature installed.

First enable digest auth module:

Create the first user:

And edit /etc/apache2/sites-available/default:

Optional: Under the mounts-folder I wanted to share some SMB shares. I also wanted to combine all shared (multiple disks) into a single folder. Note the file_mode and dir_mode if you want write access. You also need standard web permissions on the folders (same as for any website).

To combine folders (last line) you need mhddfs installed: apt-get install mhddfs

3 thoughts on “Apache WebDAV setup compatible with Windows”

  1. Hi,

    You mentioned Sharepoint initially, but then talked about Apache – does that mean Sharepoint works with basic auth?

    Cheers,
    Chris

    PS I just noticed our internal sites are using http (not https) – wow.

    Reply
    • The problem is client side (need client side registry patch to remove restriction), so I’m guessing its not using basic auth.

      WebDAV is just the protocol and works on both IIS (SharePoint) and Apache.

      Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Tedds blog

Subscribe now to keep reading and get access to the full archive.

Continue reading