WebDav:“参数不正确”将显示在一些文件夹中,其中有“index.html”/“index.php”

我试图build立一个WebDAV连接,以便我可以轻松地将我的作品上传到Web服务器。 这是我在/etc/httpd/conf.d/webdav.conf的代码。

 DavLockDB /var/www/DavLock <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/webdav/ Alias /html /var/www/html/ <Directory /var/www/html/> Options Indexes MultiViews AllowOverride None Order allow,deny allow from all </Directory> <Location /html> DAV On ForceType None AuthType Digest AuthName DAV-upload AuthUserFile /etc/httpd/.htpasswd_html AuthDigestProvider file Require valid-user </Location> </VirtualHost> 

整个连接起作用,包括读写。 但是,当我尝试进入一些包含“index.php”/“index.html”的文件夹时,Windows只会显示如下错误消息: 错误消息 ,说明The Parameter is Incorrect 。 我试图search互联网,有人说这是由于Apache尝试将页面呈现为HTML / PHP。 所以我试图在configuration文件中添加ForceType None ,但是它不起作用。

任何帮助将不胜感激,谢谢。