1

我在端口 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>

任何想法都非常感谢!

4

1 回答 1

2

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

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

于 2015-10-05T09:42:06.063 回答