小编hey*_*hew的帖子

WebDav 重命名在 NginX 后面的 Apache mod_dav 安装上失败

我正在尝试解决通过 WebDav 重命名文件的问题。我们的堆栈由一台机器组成,通过 Nginx、Varnish 和 Apache 提供内容。当您尝试重命名文件时,操作会因我们当前使用的堆栈而失败。

要连接到 WebDav,客户端程序必须:

  1. 通过https://host:443 连接到 NginX
  2. NginX 将请求解包并转发到http://localhost:81上的 Varnish 服务器
  3. Varnish 将请求转发到http://localhost:82上的 Apache,Apache通过 mod_dav 提供会话

以下是重命名失败的示例:

$ cadaver https://webdav.domain/
Authentication required for Webdav on server `webdav.domain':
Username: user
Password:

dav:/> cd sandbox
dav:/sandbox/> mkdir test
Creating `test': succeeded.

dav:/sandbox/> ls
Listing collection `/sandbox/': succeeded.
Coll:   test                                   0  Mar 12 16:00

dav:/sandbox/> move test newtest
Moving `/sandbox/test' to `/sandbox/newtest':  redirect to http://webdav.domain/sandbox/test/

dav:/sandbox/> ls
Listing collection `/sandbox/': succeeded.
Coll: …
Run Code Online (Sandbox Code Playgroud)

nginx varnish webdav apache-2.2

4
推荐指数
1
解决办法
5925
查看次数

标签 统计

apache-2.2 ×1

nginx ×1

varnish ×1

webdav ×1