通过HTTPS访问nginx反向代理的svn服务(elleflorio/svn-server),发现复制、移动操作均出现网关错误,其余正常。
经过排查定位到报错的是apache的mod_dav,详细解释在这里https://svn.haxx.se/users/archive-2006-03/0549.shtml
发现问题就好办了,因为是docker部署改容器太麻烦,直接在nginx这边操作
if ( $http_destination ~* ^https(.*)$ ) {
set $trans_des http$1;
}
proxy_set_header Destination $trans_des;
重启nginx后完美解决,令我纳闷的是域名都不校验校验连接协议?