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