V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
Livid
V2EX  ›  NGINX

貌似 Nginx 的 WebDAV 是无法支持文件夹改名的?

  •  
  •   Livid · 2014-09-04 09:05:01 +08:00 · 4251 次点击
    这是一个创建于 3523 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用 Transmit 试着去给文件夹改名的时候,遇到 409 Conflict 错误。

    error_log 里有这样的一句话:

    should be either collections or non-collections
    5 条回复    2014-09-04 10:29:21 +08:00
    denghongcai
        1
    denghongcai  
       2014-09-04 10:05:02 +08:00
    if ((r->uri.data[r->uri.len - 1] == '/' && *(last - 1) != '/')
    || (r->uri.data[r->uri.len - 1] != '/' && *(last - 1) == '/'))
    {
    ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
    "both URI"%V"and"Destination"URI"%V" "
    "should be either collections or non-collections",
    &r->uri, &dest->value);
    return NGX_HTTP_CONFLICT;
    }

    从http_dav module的代码来说,是你的姿势不对吧……
    Livid
        2
    Livid  
    MOD
    OP
       2014-09-04 10:09:05 +08:00 via iPhone
    @denghongcai 你用 Transmit 试一下吧,OS X 下非常流行的文件传输客户端。
    ohsc
        3
    ohsc  
       2014-09-04 10:15:02 +08:00
    ohsc
        4
    ohsc  
       2014-09-04 10:15:26 +08:00
    @Livid https://github.com/arut/nginx-dav-ext-module

    还是用 Apache 搭建 WebDAV 比较好,Nginx 支持不完全。
    denghongcai
        5
    denghongcai  
       2014-09-04 10:29:21 +08:00   ❤️ 1
    @Livid 我不是Mac,直接发包用MOVE指令操作是没问题的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   863 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.