gpt4 book ai didi

apache - 无法通过 WebDAV 移动或重命名文件

转载 作者:太空宇宙 更新时间:2023-11-03 14:09:56 24 4
gpt4 key购买 nike

我在端口 443(在 Ubuntu 上)上有一个 Apache (2.4.7) WebDAV 服务。通过 WebDav 移动或重命名文件都是不可能的。例如,尝试在 Cyber​​duck 中重命名文件会产生“Bad Gateway”错误消息。我知道 WebDav 和 SSL 的组合存在问题。我有限的理解是,Apache 基本上试图将文件从不安全的主机移动到安全的主机。

服务器设置相当基础。

<VirtualHost *:443>
...

Alias /mount /var/www/webdav-folder
<Location /mount>
DAV On

RewriteEngine Off
ForceType text/plain
AuthType Basic
AuthName "WebDAV"
AuthBasicProvider socache dbd

AuthDBDUserPWQuery [...]

Require valid-user
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Location>
</VirtualHost>

非常感谢任何想法!

最佳答案

我能够通过添加来解决这个问题

RequestHeader edit Destination ^https: http: early

到我的配置文件。有关深入的解释,请参见此处的示例: http://svn.haxx.se/users/archive-2006-03/0549.shtml

这个解决方案的来源在这里: http://httpd.apache.org/docs/current/mod/mod_headers.html

关于apache - 无法通过 WebDAV 移动或重命名文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32944430/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com