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反向代理应用程序及其静态文件
- nginx – Rails 3.2中的活动记录查询问题
- 在具有Nginx和Gunicorn的生产环境中,使用unix套接字或tcp绑
- ruby-on-rails – 使用Rails和Nginx获取客户端的真实IP地址
- node.js – 如何从作为nodejs服务器的反向代理的nginx服务器
- 如何在nginx.conf中引用OS环境变量
- 使用PHP5-FPM的Nginx-提供空白屏幕的.php文件
- php – 如何在虚拟主机上安全地拥有多对多用户
- 如何在Nginx上使用FastCGI运行Perl脚本?
- 来自Nginx中proxy_pass uri中主机名的正则表达式