我在我的网站上启用了apache dav模块并为其配置了摘要式身份验证.
现在我正在尝试将 Windows驱动器连接到它.命令如下:
原文链接:https://www.f2er.com/windows/366092.html现在我正在尝试将 Windows驱动器连接到它.命令如下:
net use z: http://dav.mysite.com/Files /user:username *
然后它要求输入密码.除了一个细节之外,该驱动器似乎已连接.在服务器日志中,我可以看到奇怪的401错误:
xx.xx.xx.xx - - [22/Mar/2011:23:05:04 +0000] "PROPFIND /Files HTTP/1.0" 401 751 xx.xx.xx.xx - username [22/Mar/2011:23:05:04 +0000] "PROPFIND /Files HTTP/1.0" 301 495 xx.xx.xx.xx - - [22/Mar/2011:23:05:04 +0000] "PROPFIND /Files/ HTTP/1.0" 401 751 xx.xx.xx.xx - username [22/Mar/2011:23:05:04 +0000] "PROPFIND /Files/ HTTP/1.0" 207 1175 xx.xx.xx.xx - - [22/Mar/2011:23:05:07 +0000] "PROPFIND /Files HTTP/1.0" 401 751 xx.xx.xx.xx - username [22/Mar/2011:23:05:07 +0000] "PROPFIND /Files HTTP/1.0" 301 495 xx.xx.xx.xx - - [22/Mar/2011:23:05:07 +0000] "PROPFIND /Files/ HTTP/1.0" 401 751 xx.xx.xx.xx - username [22/Mar/2011:23:05:07 +0000] "PROPFIND /Files/ HTTP/1.0" 207 1175
正如您所看到的任何正确的摘要认证请求一样,它会发送一个错误的请求
我的apache配置:
<VirtualHost xx.xx.xx.xx:80> ServerAdmin webmaster@dav.mysite.com ServerName dav.dav.mysite.com DocumentRoot /var/www/dav.mysite.com/ UseCanonicalName Off Alias /Files "/var/www/dav.mysite.com/" 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 "MSIE" AuthDigestEnableQueryStringHack=On <Directory "/var/www/dav.mysite.com"> Dav On Order allow,deny Allow from all AuthType Digest AuthName "DAV-upload" AuthDigestDomain /Files/ AuthDigestProvider file AuthUserFile /var/www/webdav.passwd Require valid-user </Directory> # Possible values include: debug,info,notice,warn,error,crit,# alert,emerg. LogLevel error ErrorLog /var/log/apache2/dav.dav.mysite.com-error.log CustomLog /var/log/apache2/dav.dav.mysite.com.log common ServerSignature Off </VirtualHost>
它的工作速度非常慢.
为什么你认为它在没有认证的情况下发送请求?
BTW其他webdav客户端正常工作
附: Nginx坐在apache前面并将所有流量传递给它