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; }(编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- ruby – Gitlab配置问题:: NGINX Unicorn端口冲突
- Nginx作为GitLab与SSL的反向代理?
- 套接字 – wsgi nginx错误:连接到上游时权限被拒绝
- nginx:try_files找不到静态文件,回到PHP
- 如何在nginx的子目录中安装symfony2 app
- python-uswgi-无法从multiprocessing.semaphore_tracker加载
- Socket.io无法连接nginx node.js php app
- 这个配置nginx作为node.js的反向代理有什么问题?
- 将Nginx日志放入Kafka的最佳选择?
- uwsgi_params不在nginx中