Apache WebDAV setup compatible with Windows

By | 2013.07.13

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. Chris Kimpton

    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
    1. tedd Post author

      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