httpd-dav.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Distributed authoring and versioning (WebDAV)
  3. #
  4. # Required modules: mod_alias, mod_auth_digest, mod_authn_core, mod_authn_file,
  5. # mod_authz_core, mod_authz_user, mod_dav, mod_dav_fs,
  6. # mod_setenvif
  7. # The following example gives DAV write access to a directory called
  8. # "uploads" under the ServerRoot directory.
  9. #
  10. # The User/Group specified in httpd.conf needs to have write permissions
  11. # on the directory where the DavLockDB is placed and on any directory where
  12. # "Dav On" is specified.
  13. DavLockDB "${SRVROOT}/var/DavLock"
  14. Alias /uploads "${SRVROOT}/uploads"
  15. <Directory "${SRVROOT}/uploads">
  16. Dav On
  17. AuthType Digest
  18. AuthName DAV-upload
  19. # You can use the htdigest program to create the password database:
  20. # htdigest -c "${SRVROOT}/user.passwd" DAV-upload admin
  21. AuthUserFile "${SRVROOT}/user.passwd"
  22. AuthDigestProvider file
  23. # Allow universal read-access, but writes are restricted
  24. # to the admin user.
  25. <RequireAny>
  26. Require method GET POST OPTIONS
  27. Require user admin
  28. </RequireAny>
  29. </Directory>
  30. #
  31. # The following directives disable redirects on non-GET requests for
  32. # a directory that does not include the trailing slash. This fixes a
  33. # problem with several clients that do not appropriately handle
  34. # redirects for folders with DAV methods.
  35. #
  36. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  37. BrowserMatch "MS FrontPage" redirect-carefully
  38. BrowserMatch "^WebDrive" redirect-carefully
  39. BrowserMatch "^WebDAVFS/1.[01234]" redirect-carefully
  40. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  41. BrowserMatch "^XML Spy" redirect-carefully
  42. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  43. BrowserMatch " Konqueror/4" redirect-carefully