502 Bad Gateway with nginx + apache + subversion + ssl

svn commit的时候返回

bash 复制代码
unexpected http status 502 'bad gateway' on

解决方法,参考:https://stackoverflow.com/questions/2479346/502-bad-gateway-with-nginx-apache-subversion-ssl-svn-copy

在nginx中代理svn中添加

bash 复制代码
location /svn {
	set $fixed_destination $http_destination;
	if ( $http_destination ~* ^https(.*)$ ) {
	    set $fixed_destination http$1;
	}
	proxy_set_header Destination $fixed_destination;
	proxy_set_header Host $http_host;
}

配置后即可正常提交

相关推荐
书中枫叶19 小时前
Mac中SVN免费使用 | WebStorm 配置 SVN 详细操作文档
svn
十二7402 天前
前端缓存踩坑实录:从版本号管理到自动化构建
前端·javascript·nginx
可观测性用观测云3 天前
云原生网关 Ingress-Nginx 链路追踪实战:OpenTelemetry 采集与观测云集成方案
nginx·kubernetes
闲云一鹤5 天前
nginx 快速入门教程 - 写给前端的你
前端·nginx·前端工程化
何中应8 天前
Nginx转发请求错误
前端·后端·nginx
芝士雪豹只抽瑞克五9 天前
Nginx 高性能Web服务器笔记
服务器·nginx
失重外太空啦9 天前
nginx
运维·nginx
天蓝不会忘记029 天前
lvs,haproxy,keepalived,nginx,tomcat介绍和实验
nginx·tomcat·lvs
坐吃山猪9 天前
OpenClaw04_Gateway常见问题
网络·gateway·openclaw