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 php)
- nginx – server_tokens关闭但仍然发布它们
- 为nginx中的上游所有服务器设置max_fails和fail_timeout
- ssl-如何配置让我们在docker映像中为nginx加密证书?
- centos – 为Phusion Passenger 3提供SSL支持的Curl开发标题
- php-当客户端使用HTTP / 1.1时,为什么$_SERVER [“ SERVER_
- dns – 虚拟主机上的nginx子域配置
- linux – 当master从命令行运行时,puppet master REST API在
- Nginx:泊坞窗内的502 Bad Gateway
- amazon-web-services – 为什么我得到ElasticBeanstalk ::
- Nginx http_status_module统计信息
- 上载的视频无法在移动浏览器中播放,但可以在桌面
- node.js-如何为Heroku Node.js Web应用程序配置N
- 什么是nginx的$request_time,为什么它比php-fpm执
- reactjs-nginx尝试根据uri在目录中查找index.htm
- 生产中的Rails 5动作电缆SSL – WebSocket连接失
- apache-2.2 – 在nginx中限制每分钟的请求数
- os x上的node.js socket.io服务器不能连接超过12
- php-当客户端使用HTTP / 1.1时,为什么$_SERVER [
- Moodle 2.3与Nginx vs斜杠参数重写