“Directory index forbidden by Options directive” when deleting or renaming folders through webdav

apache-2.2webdav

I am trying to delete folders through webdav but all I get is 403 on the client and "Directory index forbidden by Options directive" in the Apache error log. I enabled "options indexes" for the folder and I stopped getting the errors in either the client or the log, but I still can't rename or delete folders through webdav.

Any ideas why I'm unable to edit folders through webdav?

I am running WAMP, default installation with Apache 2.2.17. I can connect, create files, delete files, rename them, etc. I can create folders but not delete them or rename them, once they're created.

On the access log, whenever I try to delete, I get this: "DELETE /uploads/shahs HTTP/1.1" 301 243

On the error log, I get: Directory index forbidden by Options directive:

The Webdav client gives a 403 when trying to delete or rename folders.

Once, I added "options indexes," I stopped getting the error message in the Apache error log and the 403 on the webdav client, but now, deleting or renaming does nothing. No error messages, but nothing happens, at all.

Best Answer

I had the same Directory index forbidden by Options directive error in the Apache "error_log", and corrected it by editing "httpd-dav.conf" and adding the line :

Options Indexes FollowSymLinks

in this context :

<Directory "/absolute/path/to/my/fancy/directory">
  Dav On

  Options Indexes FollowSymLinks
  Order Allow,Deny
  Allow from all

  AuthType ...

After that, no more errors.