WebDAV fails to put new file with mod_rewrite

I had a problem with uploading new files on a WebDAV share with one of my projects.

Error message in apache log was: [Wed Jul 08 17:32:37 2009] [error] [client 23.45.34.23] Unable to PUT new contents for /dav/somefile.html. [403, #0]

Cause: I had some RewriteRules in the server's .htaccess file

Solution: add "RewriteEngine off" to virtual server's apache.conf, e.g.:

<Location /dav>
DAV On
...
RewriteEngine off
</Location>

I think it's a good idea to add this to virtual server's by default.

Status: 
Closed (fixed)

Comments

Great idea .. I will add this in the next Virtualmin DAV and SVN plugin releases.

Automatically closed -- issue fixed for 2 weeks with no activity.