2011年2月7日星期一

Apache2 webdav digest

我的Apache2 webdav digest超简单配置

/etc/apache2/sites-enabled/dav.conf

Alias /dav /var/dav/public

DavLockDB /var/dav/config/DavLock

<Location /dav>
Dav On
AuthType Digest
AuthName dav
AuthDigestDomain "/"
AuthUserFile /var/dav/config/davUsers
AuthGroupFile /var/dav/config/davGroups
Require valid-user
Order allow,deny
Allow from all
</Location>


# mkdir /var/dav/public
# mkdir /var/dav/config
# htdigest -c /var/dav/config/davUsers dav user0
# chown -R www-data:www-data /var/dav
# /etc/init.d/apache2 reload

没有评论:

发表评论