我是这个社区的新手。我在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>
任何有用的评论家伙......谢谢。