URL

时间:2015-12-07 10:38:48

标签: apache put

我是这个社区的新手。我在Httpd上运行RHEL 7.X。尝试使用以下命令将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>

任何有用的评论家伙......谢谢。

0 个答案:

没有答案
相关问题