NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
Livid
286.33D
535.25D
V2EX  ›  NGINX

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

  •  
  •   Livid ·
    PRO
    · Sep 4, 2014 · 5235 views
    This topic created in 4294 days ago, the information mentioned may be changed or developed.
    用 Transmit 试着去给文件夹改名的时候,遇到 409 Conflict 错误。

    error_log 里有这样的一句话:

    should be either collections or non-collections
    5 replies    2014-09-04 10:29:21 +08:00
    denghongcai
        1
    denghongcai  
       Sep 4, 2014
    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
    PRO
       Sep 4, 2014 via iPhone
    @denghongcai 你用 Transmit 试一下吧,OS X 下非常流行的文件传输客户端。
    ohsc
        4
    ohsc  
       Sep 4, 2014
    @Livid https://github.com/arut/nginx-dav-ext-module

    还是用 Apache 搭建 WebDAV 比较好,Nginx 支持不完全。
    denghongcai
        5
    denghongcai  
       Sep 4, 2014   ❤️ 1
    @Livid 我不是Mac,直接发包用MOVE指令操作是没问题的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2957 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:32 · PVG 22:32 · LAX 07:32 · JFK 10:32
    ♥ Do have faith in what you're doing.