WebDAV is a nice protocol. Unfortunately, the Windows implementations of it are amongst the crappiest pieces of software ever written. I thought it was better on Windows 7, but it still sucks. Here's how you can make it work at least for read access with HTTPS and self-signed certficates.
WebDAV server
I prefer LigHTTPd over Apache. If you want to use Apache or nginx, you must look elsewhere.
lighttpd-enable-mod webdav
/etc/lighttpd/conf.d/10-webdav.conf
server.modules += ( "mod_webdav" )
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
alias.url = ( "/webdav" => "/var/www/" )
$HTTP["url"] =~ "^/webdav($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
}
You
have to use digest auth for Win7 clients to work, but AFAIR older versions of Windows only accept basic auth.
server.modules += ( "mod_auth" )
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/login.user"
auth.require = ( "/webdav" =>
(
"method" => "digest",
"realm" => "restricted",
"require" => "valid-user"
))
Windows
If you know how to do it, the mystery of strange error messages can be solved easily: You have to install your self-signed certificate first. Run Internet Explorer with administrative rights (UAC won't work!):
- Enter your WebDAV URL
- Click on Continue to this website (not recommended)
- Click on Certificate Error in the red colored address bar
- Click on View certificates
- In the Certificate dialog, press Install Certificate
- In the Certificate Import Wizard, click Next
- On page 2 of the wizard, select Place all certificates in the following store and click Browse;
- In the Select Certificate Store dialog, select
Trusted Root Certification Authorities, click OK
- In the wizard, click Next, click Finish
- If a security message pops up, choose Yes
(copied from
leonmeijer.nl)
If you still have trouble using the Network Wizard to connect to your WebDAV storage, maybe the hotfix
KB907306 helps.
If you know how to properly enable write access (writing from Linux works fine), let me know.