945a9b081610f2b57759231e4cfad7aed62c9326slive#
945a9b081610f2b57759231e4cfad7aed62c9326slive# Distributed authoring and versioning (WebDAV)
945a9b081610f2b57759231e4cfad7aed62c9326slive#
f422fa04a2aba00b03b72685702c9ffa87c873adrjung# Required modules: mod_alias, mod_auth_digest, mod_authn_core, mod_authn_file,
f422fa04a2aba00b03b72685702c9ffa87c873adrjung# mod_authz_core, mod_authz_user, mod_dav, mod_dav_fs,
f422fa04a2aba00b03b72685702c9ffa87c873adrjung# mod_setenvif
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326slive# The following example gives DAV write access to a directory called
945a9b081610f2b57759231e4cfad7aed62c9326slive# "uploads" under the ServerRoot directory.
945a9b081610f2b57759231e4cfad7aed62c9326slive#
945a9b081610f2b57759231e4cfad7aed62c9326slive# The User/Group specified in httpd.conf needs to have write permissions
945a9b081610f2b57759231e4cfad7aed62c9326slive# on the directory where the DavLockDB is placed and on any directory where
945a9b081610f2b57759231e4cfad7aed62c9326slive# "Dav On" is specified.
945a9b081610f2b57759231e4cfad7aed62c9326slive
3c100a7801c1217fc95f39f7ff73ba2fb4645eefsliveDavLockDB "@@ServerRoot@@/var/DavLock"
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326sliveAlias /uploads "@@ServerRoot@@/uploads"
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326slive<Directory "@@ServerRoot@@/uploads">
945a9b081610f2b57759231e4cfad7aed62c9326slive Dav On
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326slive AuthType Digest
945a9b081610f2b57759231e4cfad7aed62c9326slive AuthName DAV-upload
945a9b081610f2b57759231e4cfad7aed62c9326slive # You can use the htdigest program to create the password database:
945a9b081610f2b57759231e4cfad7aed62c9326slive # htdigest -c "@@ServerRoot@@/user.passwd" DAV-upload admin
945a9b081610f2b57759231e4cfad7aed62c9326slive AuthUserFile "@@ServerRoot@@/user.passwd"
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholes AuthDigestProvider file
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326slive # Allow universal read-access, but writes are restricted
945a9b081610f2b57759231e4cfad7aed62c9326slive # to the admin user.
be4c217e4e6ea8262630302c567f261a7a11b6e0sf <RequireAny>
be4c217e4e6ea8262630302c567f261a7a11b6e0sf Require method GET POST OPTIONS
be4c217e4e6ea8262630302c567f261a7a11b6e0sf Require user admin
be4c217e4e6ea8262630302c567f261a7a11b6e0sf </RequireAny>
945a9b081610f2b57759231e4cfad7aed62c9326slive</Directory>
945a9b081610f2b57759231e4cfad7aed62c9326slive
945a9b081610f2b57759231e4cfad7aed62c9326slive#
945a9b081610f2b57759231e4cfad7aed62c9326slive# The following directives disable redirects on non-GET requests for
945a9b081610f2b57759231e4cfad7aed62c9326slive# a directory that does not include the trailing slash. This fixes a
945a9b081610f2b57759231e4cfad7aed62c9326slive# problem with several clients that do not appropriately handle
945a9b081610f2b57759231e4cfad7aed62c9326slive# redirects for folders with DAV methods.
945a9b081610f2b57759231e4cfad7aed62c9326slive#
945a9b081610f2b57759231e4cfad7aed62c9326sliveBrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
d649c7462ea105df8d9f4f50f2999a9e6e0402d5jortonBrowserMatch "MS FrontPage" redirect-carefully
945a9b081610f2b57759231e4cfad7aed62c9326sliveBrowserMatch "^WebDrive" redirect-carefully
6b9d233eaabdbcbc99707fd3e2f0b8eef0fe6acesfBrowserMatch "^WebDAVFS/1.[01234]" redirect-carefully
945a9b081610f2b57759231e4cfad7aed62c9326sliveBrowserMatch "^gnome-vfs/1.0" redirect-carefully
d649c7462ea105df8d9f4f50f2999a9e6e0402d5jortonBrowserMatch "^XML Spy" redirect-carefully
b835d26b070fc778d4e4f6e868019dfa0cc137d2jortonBrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
6b9d233eaabdbcbc99707fd3e2f0b8eef0fe6acesfBrowserMatch " Konqueror/4" redirect-carefully