How to set up a secure webdav area on an Apache 2.0 server that is mountable from windows

From UConn PAN
Revision as of 14:20, 28 August 2007 by Jonesrt (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There is plenty of help on the web regarding how to set up a webdav area on an Apache 2.0 server using the mod_dav apache module. If this is enabled on an area of the site secured with SSL/TLS (reachable by urls beginning with https:) there are a few extra steps, also widely documented. What was not so easy to figure out how to do was how to do client authentication based on client certificates. Most of the sites out there assume that people should use http basic authentication and type passwords all of the time. I wanted to use my client certificate instead. The short answer is that it is only possible if there is only one certificate used to access the webdav area. In this case, one can configure the webdav directory as follows.

<Directory "/home/www/dav/">
    DAV On
    AuthType Basic
    AuthName "WebDAV Restricted"
    AuthUserFile /home/www/.htpasswd/webdav.htpasswd
    <LimitExcept OPTIONS>
        Require user webdav
    </LimitExcept>
    SSLVerifyClient off
</Directory>