Running Owncloud WebDAV with Nginx
By tom on 4. February 2012 - 23:56Here is how I got OwnCloud's WebDAV feature to work in Nginx. I use Nginx with dav-ext-module which provides support for OPTIONS and PROPFIND methods, but it works with plain http_dav_module, too.
With dav-ext-module, you have to be very careful not to set dav_ext_methods in the root context, otherwhise the hole site's folder structure can be browsed with webdav. It's best to set the dav handler only on the files/webdav.php, apps/contacts/carddav.php and other DAV scripts.