nginx 反代 apache2 webdav 踩坑记
原本 nginx 的 webdav 跑的好好的,一放到 cloudflare tunnel 后面就寄了,提示 COPY and MOVE with body are unsupported,于是就改回了 apache2 的 webdav。
首先出现问题的就是重命名。经过一番搜索,找到了这个,照着改完用了一段时间,似乎就没什么问题了。
又过了一段时间,发现不能重命名带有中文字符的文件,然后再次搜索,发现要 mod_encoding 这个 apache2 的 mod,于是找了半天源码编译,没找到,心里还向着以前似乎单独用 apache 的时候没什么问题。最后发现 debain 的仓库里就有,叫做 libapache2-mod-encoding。
然而还是不能解决,最后直接连了 apache,发现是正常的,最后还是发现是 nginx 的问题。就在帖子的下面:
As @Cnly said, using
setdirective won’t work if there are special characters in both the originalDestinationheader and url. (I have no idea why)
于是把第二个回答的配置抄了过来,结束了。
nginx 反代 apache2 webdav 踩坑记
https://blogs.sving1024.top/posts/1615/