How to set up a WebDAV share with Nginx
How to set up a WebDAV share with Nginx
Built-in WebDAV Module
The ngx_http_dav_module module is intended for file management automation via the WebDAV protocol. The module processes HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY, and MOVE.
WebDAV clients that require additional WebDAV methods to operate will not work with this module. Currently, only hdav of Haskell DAV library works.
nginx-dav.conf
1 | location /dav { |
hdav
1 | sudo apt-get install -y --no-install-recommends hdav |
WebDAV missing methods support for Nginx
Since both cadaver and davfs2 need methods OPTIONS and PROPFIND, we need ngx_dav_ext_module module for these missing methods.
nginx-dav-ext.conf
1 | # load_module modules/ngx_http_dav_ext_module.so; |
cadaver and davfs2
1 | sudo apt-get install -y --no-install-recommends cadaver davfs2 |
Windows 10 WebClient
Add support http in addition to https:
1 | regedit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters |
WebClient not good as hdav of Haskell DAV library, cadaver or davfs2. It has a lot of annoying problems and looks like a half-finished product.