我正在使用XAMPP下的apache 2.4.25设置WebDAV。
它可以由具有读/写访问权限的用户成功连接。
但是,我需要将其设置为只读但失败。我四处搜寻,但没有成功。
这是我在httpd-dav.conf
中设置的内容
<Directory "D:/xampp/webdav">
Require all granted
Dav On
AuthType Digest
AuthName "XAMPP with WebDAV"
# You can use the htdigest program to create the password database:
# htdigest -c "c:/Apache24/user.passwd" DAV-upload admin
AuthUserFile "c:/Apache24/user.passwd"
AuthDigestProvider file
# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
require valid-user
</LimitExcept>