Sunday, October 26, 2008

WebDAV with Apache2 and Windows

In case you haven't looked in a while, WebDAV modules are included with Apache 2 and 2.2. See for example for an installation overview.

This will work great for Mac clients (from "Finder" hit apple-k to connect as a remote web folder) with HTTPD basic authentication, but they will fail for Windows XP clients (either mapping as a drive or adding network location). The reason, it turns out, is that Windows is actually working correctly: it won't do Basic Auth over an insecure connection.

To solve this, use SSL. There's an overview of the problem and variuos solutions at See for example for some Apache + SSL instructions.

One Final Trick: Windows clients seem to have a problem with the trailing "/", so in your Apache httpd.conf file, use something like

<location /dav>

and not

<location /dav/>

for your WebDAV folder name.

No comments: