1

我想从 Mavericks mac os x 服务器配置 webdav 服务。我编辑了 http-dav.conf 如下;

DavLockDB "/usr/davlock""

别名 /uploads "/usr/uploads"

戴夫

Order Allow,Deny
Allow from all

AuthType Digest
AuthName DAV-upload

# You can use the htdigest program to create the password database:
#   htdigest -c "/usr/user.passwd" DAV-upload admin
AuthUserFile "/usr/user.passwd"
AuthDigestProvider file

# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
    require user admin
</LimitExcept>

在那之后 ; 我创建了 /usr/uploads 和 /usr/davlock 目录。我跑;

chown -R www:www /usr/uploads
chown -R www:www /usr/davlock
chown -R www:www /usr/usr.passwd
htdigest -c "/usr/user.passwd" DAV-upload admin

命令。我输入服务器地址格式"http://192.168.1.20/uploads" ,系统询问我的凭据信息。我插入凭据信息但不接受。当我阅读 apache 日志文件时,我看到以下几行;

[Sat Oct 26 08:54:55 2013] [error] [client 192.168.1.20] mod_digest_apple: Unable to lookup user record
[Sat Oct 26 08:54:55 2013] [error] [client 192.168.1.20] mod_digest_apple: Unable to find user "admin" in directory

我错过了什么吗?这应该工作吗?

4

0 回答 0