httpd-dav.conf.in

来自「apache服务器源代码(版本号:2.2.2)」· IN 代码 · 共 51 行

IN
51
字号
## Distributed authoring and versioning (WebDAV)## Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias#                   mod_auth_digest, mod_authn_file## The following example gives DAV write access to a directory called# "uploads" under the ServerRoot directory.## The User/Group specified in httpd.conf needs to have write permissions# on the directory where the DavLockDB is placed and on any directory where# "Dav On" is specified.DavLockDB "@@ServerRoot@@/var/DavLock"Alias /uploads "@@ServerRoot@@/uploads"<Directory "@@ServerRoot@@/uploads">    Dav On    Order Allow,Deny    Allow from all    AuthType Digest    AuthName DAV-upload    # You can use the htdigest program to create the password database:    #   htdigest -c "@@ServerRoot@@/user.passwd" DAV-upload admin    AuthUserFile "@@ServerRoot@@/user.passwd"    # Allow universal read-access, but writes are restricted    # to the admin user.    <LimitExcept GET OPTIONS>        require user admin    </LimitExcept></Directory>## The following directives disable redirects on non-GET requests for# a directory that does not include the trailing slash.  This fixes a # problem with several clients that do not appropriately handle # redirects for folders with DAV methods.#BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefullyBrowserMatch "MS FrontPage" redirect-carefullyBrowserMatch "^WebDrive" redirect-carefullyBrowserMatch "^WebDAVFS/1.[0123]" redirect-carefullyBrowserMatch "^gnome-vfs/1.0" redirect-carefullyBrowserMatch "^XML Spy" redirect-carefullyBrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?