我是这个社区的新手 . 我在 RHEL 7.X 上运行 Httpd . 尝试使用以下命令将hello.world文件上传到 WebDAV 服务器:

curl -T hello.world -u webdav:webdav http://192.168.100.49/recordings/hello.world.

In-Return,我收到 405 .. PUT 方法不允许这个 URL .

我也在这里分享我的 webdav.conf 文件的内容:

<IfModule mod_dav.c>
   Alias /recordings /var/webdav/recordings"
    <Directory /var/webdav/recordings>
        Dav On
        Options Indexes MultiViews FollowSymlinks
        IndexOptions FancyIndexing
       AddDefaultCharset UTF-8
       AuthType Basic
      AuthName "webdav"
       AuthUserFile /var/webdav/htpasswd
       Require valid-user
       Order allow,deny
       Allow from all
      <LimitExcept GET POST OPTIONS PUT>
          Order allow,deny
          Allow from all
      </LimitExcept>
    </Directory>

   <Location "/recordings">
        Require valid-user
    AuthType Basic
        AuthName "webdav"
    AuthUserFile /var/webdav/htpasswd 
   </Location>
</IfModule>

任何有用的评论家伙 . 谢谢你提前 .