我正在尝试在 FreeBSD 上的 Apache 2.2 上配置 WebDav。Apache 运行良好,提供了很多东西。
所有 dav 模块似乎都包含在 LoadModules 命令中。这个虚拟主机工作正常。
当我访问 www.mysite.com/admin/ 时,我得到目录列表。没有其他的。我希望能够读/写等。
<VirtualHost 10.11.11.103:8180>
...
config to server my site
...
#enable webdav
DavLockDB "/var/log/www/DavLock"
Alias /admin/ /home/testing/pdf/
<Directory "/home/testing/pdf/">
Dav On
Order Allow,Deny
Allow from all
<LimitExcept GET OPTIONS>
Allow from All
</LimitExcept>
</Directory>
# fixes a problem with several clients - redirects for folders with DAV methods.
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-careful
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</VirtualHost>