apache-2.2 C 在NginX后面的Apache mod_dav安装上,WebDav重命名失败
要连接到WebDav
|
我正在尝试通过WebDav重命名文件来解决问题.我们的堆栈由一台机器组成,通过Nginx,Varnish和Apache提供内容.当您尝试重命名文件时,操作将失败,并显示我们当前正在使用的堆栈. 要连接到WebDav,客户端程序必须: >通过https://host:443连接到NginX 以下是重命名失败的示例: $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: test 0 Mar 12 16:00有关更多反馈,WebDrive Windows客户端在重命名操作上记录了错误502(错误网关)和303(?).扩展日志提供了以下信息: Destination URI refers to different 其他一些限制:调查NginX的Webdav模块表明它并不真正符合我们的需求,并且将webdav流量转发到Apache不是一种选择,因为我们不想启用Apache SSL. 有没有办法欺骗mod_dav转发到另一个主机?我很开心:). 最佳答案 (回到我使用Subversion的日子)我从Nginx SSL前端代理到Apache SVN时遇到了类似的问题.假设Nginx SSL前端是https:// host,我们想代理到内部Apache SVN服务器的连接http:// svn当您尝试使用Destination标头复制资源时,会发生此问题: COPY /path HTTP/1.1 Host: host Destination: https://host/another_path如您所见,Destination标头仍包含https架构.修复非常明显 – location / { # to avoid 502 Bad Gateway: # http://vanderwijk.info/Members/ivo/articles/ComplexSVNSetupFix set $destination $http_destination; if ($destination ~* ^https(.+)$) { set $destination http$1; } proxy_set_header Destination $destination; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://svn; }(编辑:长春站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Nginx返回一个假的200状态代码的空json对象
- domain-name-system – 是否可以使用DNS和Nginx拥有多个子域
- Nginx:1M map的最佳map_hash_max_size和map_hash_bucket_s
- ruby-on-rails – nginx 504网关超时
- nginx – 忽略Varnish VCL中的GET参数
- 使用nginx和Drupal,如何为存在的静态文件和目录提供404错误
- ubuntu – / etc / nginx / sites-enabled / defaul中的“s
- apache-2.2 C 在NginX后面的Apache mod_dav安装上,WebDav重
- nginx – 是否有任何证书颁发机构都支持SAN和通配符?
- Nginx在位置查询关键字匹配
- django-Nginx:在CentOS 7上对Gunicorn套接字的权
- nginx – IE/wget将子域的SSL证书与主域证书混淆
- 如何配置nginx从其他文件夹加载try_files?
- python – Django与Gunicorn有不同的部署方式
- nginx – $request_uri后缀的变量,与位置块前缀不
- Kubernetes Nginx:如何实现零停机部署?
- 套接字 – wsgi nginx错误:连接到上游时权限被拒
- node.js – 如何在使用docker-compose时为mongod
- 如何在Nginx上使用FastCGI运行Perl脚本?
- nginx – Dokku:从应用程序收听多个端口
