httpd-dav_uwamp.conf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Distributed authoring and versioning (WebDAV)
  3. #
  4. # Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
  5. # mod_auth_digest, mod_authn_file
  6. #
  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 "{APACHEPATH}/var/DavLock"
  14. Alias /uploads "{APACHEPATH}/uploads"
  15. <Directory "{APACHEPATH}/uploads">
  16. Dav On
  17. Require all granted
  18. AuthType Digest
  19. AuthName DAV-upload
  20. # You can use the htdigest program to create the password database:
  21. # htdigest -c "{APACHEPATH}/user.passwd" DAV-upload admin
  22. AuthUserFile "{APACHEPATH}/user.passwd"
  23. AuthDigestProvider file
  24. # Allow universal read-access, but writes are restricted
  25. # to the admin user.
  26. <LimitExcept GET OPTIONS>
  27. require user admin
  28. </LimitExcept>
  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.[0123]" redirect-carefully
  40. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  41. BrowserMatch "^XML Spy" redirect-carefully
  42. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully