我配置了一个 WebDav 目录,但它不起作用。这是我的配置:
# Load WebDav Modules
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
# DavLock File
DavLockDB /tmp/DavLock
# http://www.webdav.org/mod_dav/install.html
DAVMinTimeout 600
# Some WebDav Fixes
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
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
BrowserMatch "Microsoft-WebDAV-MiniRedir/6.1.7600" redirect-carefully
BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
<Directory /var/www/testdav>
Dav On
</Directory>
模块加载:
WebServer> ./httpd -M
Loaded Modules:
...
dav_module (shared)
dav_fs_module (shared)
...
Syntax OK
DavLock是可写的:
WebServer> ll /tmp/DavLock
-rwxrwxrwx 1 nobody users 0 Feb 13 20:14 /tmp/DavLock
这是我的测试服务器令牌:
Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1c-fips PHP/5.3.15 DAV/2
我在错误日志中找不到任何有用的信息。也许有人可以给我指明正确的方向。
谢谢划痕
编辑#1
Windows 测试失败并显示以下消息:
192.168.1.100 - - [13/Feb/2013:21:19:18 +0100] "OPTIONS /testdav/ HTTP/1.1" 200 - "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
192.168.1.100 - - [13/Feb/2013:21:19:18 +0100] "PROPFIND /testdav HTTP/1.1" 301 364 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
192.168.1.100 - - [13/Feb/2013:21:19:18 +0100] "PROPFIND /testdav/ HTTP/1.1" 405 362 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
DAV Explorer 测试失败并显示以下消息:
192.168.1.100 - - [13/Feb/2013:21:20:47 +0100] "OPTIONS /testdav/ HTTP/1.1" 200 - "-" "UCI DAV Explorer/0.91 RPT-HTTPClient/0.3-3E"
答案1
尝试查看配置文件和日志文件之间的区别。在配置文件中:“Microsoft-WebDAV-MiniRedir/6.1.7600”在日志文件中:“Microsoft-WebDAV-MiniRedir/6.1.7601”
我认为你必须像这样修补你的配置文件:BrowserMatch“^Microsoft-WebDAV-MiniRedir”重定向 - 小心
答案2
收到错误... dav 模块有问题。用另一台服务器上以相同方式(和相同版本)安装的模块替换它。