2013-04-23 44 views
1

我正在嘗試將使用WebDAV協議的Maven項目網站部署到Apache 2.2中。服務器。未使用DAVLockDB指令指定鎖定數據庫。必須指定一個使用鎖定功能。 [500,#401]

而當我將應用程序部署到服務器時,出現以上錯誤。我有以下配置​​3210。但我仍然在ahache_error.log文件中發現以上錯誤。有沒有人可以幫我找到原因。

DavLockDB "c:/apache2.2/var/DavLock" 
Alias /sites "c:/apache2.2/sites" 

<Directory "c:/apache2.2/sites"> 
    Dav On 

    Order Allow,Deny 
    Allow from all 

    AuthType Digest 
    AuthName DAV-upload 

    Options Indexes 

    AuthUserFile "c:/wamp/bin/apache/apache2.2.22/user.passwd" 
    AuthDigestProvider file 

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

回答

1

其實我在2天后找到了答案,答案很簡單。

從我的httpd-dav.conf文件刪除DavLockDB "c:/apache2.2/var/DavLock"和 放在httpd.conf文件

內這條線這是我做的唯一的變化,現在我可以使用Web DAV訪問APACHE2.2服務器protocal。